Hi Jochen, Can you try using dependencies without using the msf4j-parent?
Thanks Thusitha On Mon, Jul 10, 2017 at 4:09 PM, Jochen Traunecker < [email protected]> wrote: > Hi Thusitha, > > I'm pointing to this as parent > > <modelVersion>4.0.0</modelVersion> > <groupId>org.wso2.msf4j</groupId> > <artifactId>msf4j-service</artifactId> > <packaging>pom</packaging> > <version>2.1.2-SNAPSHOT</version> > > Thanks, > Jochen > ... > > 2017-07-05 18:13 GMT+02:00 Thusitha Thilina Dayaratne <[email protected]> > : > >> Hi Jochen, >> >> When you put your custom log4j.properties file, it should be correctly >> picked up. Are you using the msf4j-core dependency or the msf4j-parent? >> You can also refer dev mail thread [1] >> >> [1] - "[Dev] Too much noise during MSF4J startup (master branch)" >> >> Thanks >> Thusitha >> >> On Wed, Jul 5, 2017 at 8:31 PM, Jochen Traunecker < >> [email protected]> wrote: >> >>> 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/res >>>>>>> ources> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>> >>> >> >> >> -- >> Thusitha Dayaratne >> WSO2 Inc. - lean . enterprise . middleware | wso2.com >> >> Mobile +94712756809 <+94%2071%20275%206809> >> Blog alokayasoya.blogspot.com >> About http://about.me/thusithathilina >> <http://wso2.com/signature> >> >> > > > -- > Gruss / regards > > Jochen Traunecker > mailto: [email protected] > -- Thusitha Dayaratne WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
