Fix logging configuration and references to renamed property mvnd.uid

This commit is contained in:
Guillaume Nodet
2021-01-14 15:17:33 +01:00
parent 890c872760
commit d4d322f8ce
3 changed files with 3 additions and 13 deletions

View File

@@ -26,7 +26,7 @@
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator" />
<appender name="DAEMON" class="ch.qos.logback.core.FileAppender">
<file>${mvnd.daemonStorage}/daemon-${mvnd.uid}.log</file>
<file>${mvnd.daemonStorage}/daemon-${mvnd.id}.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %.-1level %msg%n</pattern>
</encoder>

View File

@@ -33,7 +33,7 @@
# - mvnd.daemonStorage: this property defines the location where mvnd stores its
# files (registry and daemon logs). This property can only be defined as
# a system property on the command line
# - mvnd.uid: this property is used internally to identify the daemon being created
# - mvnd.id: this property is used internally to identify the daemon being created
# - mvnd.extClasspath: internal option to specify the maven extension classpath
# - mvnd.coreExtensions: internal option to specify the list of maven extension to register
#

View File

@@ -25,15 +25,8 @@
<configuration>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator" />
<!--
| write project-specific build log messages to ${project.build.directory}/build.log files
-->
<appender name="MEM" class="org.mvndaemon.mvnd.logging.smart.ProjectBuildLogAppender">
<pattern>[%level] %msg%n</pattern>
</appender>
<appender name="DAEMON" class="ch.qos.logback.core.FileAppender">
<file>${mvnd.daemonStorage}/daemon-${mvnd.uid}.log</file>
<file>${mvnd.daemonStorage}/daemon-${mvnd.id}.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %.-1level %msg%n</pattern>
</encoder>
@@ -51,7 +44,4 @@
<logger name="org.apache.maven.lifecycle.internal.builder.BuilderCommon" level="ERROR" />
<logger name="org.eclipse.aether.internal.impl.WarnChecksumPolicy" level="ERROR" />
<root level="${consoleLevel:-info}">
<appender-ref ref="MEM" />
</root>
</configuration>