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.
> html#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:[email protected]
>> >>:
>>
>>     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/resources
>>     <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

Reply via email to