We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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>
The text was updated successfully, but these errors were encountered:
Any updates please
Sorry, something went wrong.
cc @lusis hi, we would also like this to support log4j 2.x please :).
No branches or pull requests
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>
The text was updated successfully, but these errors were encountered: