Skip to content

Commit

Permalink
Added log4j settings to have hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ishita9 committed Oct 11, 2024
1 parent 087d3eb commit 2b4ef81
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions webapp/metviewer/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- Suggested code may be subject to a license. Learn more: ~LicenseLog:251802877. -->
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">

<Appenders>
<Console name="appLog" target="SYSTEM_OUT">
<PatternLayout
pattern="%style{%d{ISO8601}}{black} %highlight{%-5level }[%style{%L}{blue}] [%style{%M}{bright,blue}] %style{%C{1.}}{bright,yellow} %style{METviewer}{bright,green} %style{[%X{hostName}]}{bright,red} %msg%n%throwable%n" />
</Console>
</Appenders>

<Loggers>
<Root level="info" includeLocation="true">
<AppenderRef ref="appLog" />
</Root>

</Loggers>

</Configuration>

0 comments on commit 2b4ef81

Please sign in to comment.