Merge pull request #10554 from Sebastian Thomschke

* gh-10554:
  Honor logging.path config in filePattern for Log4j2 RollingFile
pull/10588/merge
Andy Wilkinson 7 years ago
commit 5acd6c40eb

@ -11,7 +11,7 @@
<Console name="Console" target="SYSTEM_OUT" follow="true"> <Console name="Console" target="SYSTEM_OUT" follow="true">
<PatternLayout pattern="${sys:CONSOLE_LOG_PATTERN}" /> <PatternLayout pattern="${sys:CONSOLE_LOG_PATTERN}" />
</Console> </Console>
<RollingFile name="File" fileName="${sys:LOG_FILE}" filePattern="logs/$${date:yyyy-MM}/app-%d{yyyy-MM-dd-HH}-%i.log.gz"> <RollingFile name="File" fileName="${sys:LOG_FILE}" filePattern="${sys:LOG_PATH}/$${date:yyyy-MM}/app-%d{yyyy-MM-dd-HH}-%i.log.gz">
<PatternLayout> <PatternLayout>
<Pattern>${sys:FILE_LOG_PATTERN}</Pattern> <Pattern>${sys:FILE_LOG_PATTERN}</Pattern>
</PatternLayout> </PatternLayout>

Loading…
Cancel
Save