Issue #644 Modules for logging
Added log4j2.xml configuration Added jetty-log4j2 mapping module
This commit is contained in:
parent
4e364a5642
commit
501b8e9dca
|
@ -0,0 +1,9 @@
|
|||
[description]
|
||||
Provides a Jetty Logging implementation that logs to the log4j API.
|
||||
Uses the slf4j and log4j v1.2 mechanisms as intermediaries.
|
||||
Requires another module that provides an log4j2 implementation.
|
||||
|
||||
[depend]
|
||||
jetty-slf4j
|
||||
slf4j-log4j
|
||||
log4j-log4j2
|
|
@ -4,12 +4,13 @@ To receive jetty logs enable the jetty-slf4j, slf4j-log4j and log4j-log4j2 modul
|
|||
|
||||
[depends]
|
||||
log4j2-api
|
||||
resources
|
||||
|
||||
[provides]
|
||||
log4j2-impl
|
||||
|
||||
[files]
|
||||
basehome:modules/log4j2/log4j2.properties|resources/log4j2.properties
|
||||
basehome:modules/log4j2/log4j2.xml|resources/log4j2.xml
|
||||
maven://org.apache.logging.log4j/log4j-core/${log4j2.version}|lib/log4j/log4j-core-${log4j2.version}.jar
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
status = error
|
||||
name = PropertiesConfig
|
||||
|
||||
appender.console.type = Console
|
||||
appender.console.name = STDOUT
|
||||
appender.console.layout.type = PatternLayout
|
||||
appender.console.layout.pattern = %m%n
|
||||
|
||||
rootLogger.level = info
|
||||
rootLogger.appenderRef.stdout.ref = STDOUT
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="WARN">
|
||||
<Appenders>
|
||||
<Console name="console" target="SYSTEM_ERR">
|
||||
<PatternLayout pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n"/>
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="info" additivity="false">
|
||||
<AppenderRef ref="console"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
|
Loading…
Reference in New Issue