Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log4j2 #66

Open
batghare opened this issue Feb 25, 2017 · 2 comments
Open

Log4j2 #66

batghare opened this issue Feb 25, 2017 · 2 comments

Comments

@batghare
Copy link

batghare commented Feb 25, 2017

How do I use it with Log4j2 ?

These are my xml configurations patterlayout and jsonlayout works but not using

<Configuration status="trace"> <Appenders> <RollingFile name="file-log" fileName="C:/OdiService3.log" filePattern="C:/OdiService3-%d{yyyy-MM-dd}.log"> <!--<PatternLayout>--> <!--<pattern>[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n %X</pattern>-> <!--</PatternLayout>--> <!-- <JsonLayout locationInfo="true" complete="false" /> --> <layout class="net.logstash.log4j.JSONEventLayoutV1" /> <Policies> <TimeBasedTriggeringPolicy interval="1" modulate="true"/> </Policies> </RollingFile> <Console name="console" target="SYSTEM_OUT"> <PatternLayout pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n"/> </Console> </Appenders> <Loggers> <Logger name="oracle.dicloud.odi" level="info" additivity="false"> <appender-ref ref="file-log" level="info"/> </Logger> <Root level="info" additivity="false"> <appender-ref ref="console"/> </Root> </Loggers> </Configuration>

@batghare
Copy link
Author

Any updates please

@paladox
Copy link

paladox commented Nov 17, 2017

cc @lusis hi, we would also like this to support log4j 2.x please :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants