Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
redirect fls errors to file

Signed-off-by: eparovyshnaya <[email protected]>
  • Loading branch information
eparovyshnaya committed Feb 21, 2022
1 parent b7de305 commit 60d93ef
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions bundles/org.eclipse.passage.lbc.jetty/config/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
ArSysOp - initial API and implementation
-->

<Configuration status="DEBUG"
packages="org.eclipse.passage.lbc.internal.base,org.eclipse.passage.lbc.internal.jetty,org.eclipse.passage.lic.internal.jetty,org.eclipse.passage.lic.internal.net,org.apache.logging.log4j2,org.eclipse">
<Configuration status="DEBUG" packages="org.eclipse.passage,org.apache.logging.log4j2,org.eclipse">

<Appenders>

Expand All @@ -35,17 +34,34 @@
</Route>
</Routes>
</Routing>

<Routing name="ToTalk">
<Routes pattern="$${sd:type}">
<Route>
<RollingFile name="talk-FLS"
fileName="logs/talk.log" filePattern="talk.%i.log.gz">
<PatternLayout>
<pattern>%d{HH:mm:ss} %p %c{1.} [%t] %m%n</pattern>
</PatternLayout>
<SizeBasedTriggeringPolicy size="500000" />
</RollingFile>
</Route>
</Routes>
</Routing>

</Appenders>

<Loggers>

<Root level="error">
<AppenderRef ref="ToSysOut" />
<Root level="info">
<AppenderRef ref="ToTalk" />
</Root>
<Logger name="org.eclipse.passage">
<AppenderRef ref="ToFile" />
</Logger>
<Logger name="org.apache.logging.log4j">
<AppenderRef ref="ToTalk" />
</Logger>

</Loggers>

Expand Down

0 comments on commit 60d93ef

Please sign in to comment.