Hi Godwin, thanks for pointing me to the this solution.
Cheers Jochen 2017-06-28 20:27 GMT+02:00 Godwin Shrimal <[email protected]>: > Hi Jochen, > > You can pass log4j commandline paramater when running the fat jar as > follows to apply the og4j.properties. > > -Dlog4j.configuration=file:"$CARBON_HOME"/conf/log4j.properties > > > Thanks > Godwin > > > On Tue, Jun 27, 2017 at 2:17 AM, Jochen Traunecker < > [email protected]> wrote: > >> Hi, >> >> thanks for the hints and it works adding a log4j.xml into /resources but >> log4j.properties seems to get ignored. Maybe I have some typo somewhere. >> >> Regards, >> Jochen >> >> 2017-06-27 9:09 GMT+02:00 Gottfried Szing <[email protected]>: >> >>> Hi Jochen >>> >>> Did you try the possibilities that come out-of-the-box with log4j? >>> >>> https://logging.apache.org/log4j/2.x/manual/configuration.ht >>> ml#Automatic_Configuration >>> >>> br >>> >>> On 27/06/2017 09:02, Thomas LEGRAND wrote: >>> >>>> Hello, >>>> >>>> Have you tried to put a log4j.xml configuration file in your >>>> src/main/resources directory? For example, here is mine to trigger the >>>> DEBUG mode: >>>> >>>> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> >>>> <log4j:configuration debug="false" >>>> xmlns:log4j='http://jakarta.apache.org/log4j/'> >>>> >>>> <appender name="console" class="org.apache.log4j.ConsoleAppender"> >>>> <layout class="org.apache.log4j.PatternLayout"> >>>> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p >>>> %c{1}:%L - %m%n" /> >>>> </layout> >>>> </appender> >>>> >>>> <root> >>>> <level value="DEBUG" /> >>>> <appender-ref ref="console" /> >>>> </root> >>>> >>>> </log4j:configuration> >>>> >>>> Regards, >>>> >>>> Thomas >>>> >>>> 2017-06-26 21:54 GMT+02:00 Jochen Traunecker < >>>> [email protected] <mailto:jochen.traunecker@goog >>>> lemail.com>>: >>>> >>>> Hi, >>>> >>>> I'm wondering if there is a way to introduce a custom >>>> log4j.properties file instead of default one [1] for >>>> MSF4J in combination with fatjar? >>>> >>>> Thanks, >>>> Jochen >>>> >>>> [1] https://github.com/wso2/msf4j/tree/master/core/src/main/reso >>>> urces >>>> <https://github.com/wso2/msf4j/tree/master/core/src/main/resources> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] <mailto:[email protected]> >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev < >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >> >> >> -- >> Gruss / regards >> >> Jochen Traunecker >> mailto: [email protected] >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Godwin Amila Shrimal* > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94772264165* > linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* > twitter: https://twitter.com/godwinamila > <http://wso2.com/signature> > -- Gruss / regards Jochen Traunecker mailto: [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
