bael-4843: add syslog appender to log4j conf

This commit is contained in:
sharifi 2021-07-01 14:08:12 +04:30
parent ec43ac575a
commit 2b64a6a263
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,10 @@
<TimeBasedTriggeringPolicy /> <TimeBasedTriggeringPolicy />
</Policies> </Policies>
</RollingFile> </RollingFile>
<Syslog name="Syslog" format="RFC5424" host="localhost" port="514"
protocol="UDP" appName="baeldung" facility="LOCAL0" />
</Appenders> </Appenders>
<Loggers> <Loggers>
@ -29,6 +33,7 @@
<Root level="info"> <Root level="info">
<AppenderRef ref="Console" /> <AppenderRef ref="Console" />
<AppenderRef ref="RollingFile" /> <AppenderRef ref="RollingFile" />
<AppenderRef ref="Syslog" />
</Root> </Root>
<!-- LOG "com.baeldung*" at TRACE level --> <!-- LOG "com.baeldung*" at TRACE level -->