Run liferay 7.0 logging using local timeRun liferay 7.0 logging using local timehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1185211582024-03-29T11:17:51Z2024-03-29T11:17:51ZRE: Run liferay 7.0 logging using local timeWilliam Gossehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185359542020-02-18T15:29:05Z2020-02-18T15:29:05ZBummer but thanks again.William Gosse2020-02-18T15:29:05ZRE: Run liferay 7.0 logging using local timeDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185333592020-02-18T14:27:55Z2020-02-18T14:27:55ZUnfortunately not.David H Nebinger2020-02-18T14:27:55ZRE: Run liferay 7.0 logging using local timeWilliam Gossehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185270452020-02-17T22:12:34Z2020-02-17T22:12:34ZCan I externalize the portal-log4j-ext.xml like the portal-ext.properties file?William Gosse2020-02-17T22:12:34ZRE: Run liferay 7.0 logging using local timeWilliam Gossehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185267222020-02-17T22:03:29Z2020-02-17T22:03:29ZThanks David!William Gosse2020-02-17T22:03:29ZRE: Run liferay 7.0 logging using local timeDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185240942020-02-17T19:33:10Z2020-02-17T19:33:10Z<html><head></head><body>Sure thing! But you have to work to get it there...<br><br><br>Basically you need to use a custom logger definition such as:<br><pre><code><appender name="file" class="org.apache.log4j.DailyRollingFileAppender">
<param name="file" value="log/volt.log">
<param name="DatePattern" value="'.'yyyy-MM-dd">
<layout class="[b][b]org.apache.log4j.EnhancedPatternLayout[/b][/b]">
<param name="ConversionPattern" value="[b][b]%d{ISO8601}{GMT-5}[/b][/b] %-5p [%t] %c: %m%n">
</layout>
</appender></code></pre>You need to override the portal's logging using either a webapps/ROOT/WEB-INF/classes/META-INF/portal-log4j-ext.xml file (to change Liferay's core loggers), but with Liferay 7 there are additional ways to update module logging if you only need logs from a specific module to be formatted differently.</body></html>David H Nebinger2020-02-17T19:33:10ZRun liferay 7.0 logging using local timeWilliam Gossehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185211572020-02-17T15:13:30Z2020-02-17T15:13:30ZIs there a way to setup liferay l