tils.core.0.131.0.source-code.log4j2.properties Maven / Gradle / Ivy
#-------------------------------------------------------------------------------------------
# Basic Configuration
#-------------------------------------------------------------------------------------------
name=PropertiesConfig
status=error
dest=err
monitorInterval=30
#-------------------------------------------------------------------------------------------
# Properties
#-------------------------------------------------------------------------------------------
property.logFilename=logs.log
#-------------------------------------------------------------------------------------------
# Appenders
#-------------------------------------------------------------------------------------------
# Console Appender
appender.myConsole.name=myConsoleAppender
appender.myConsole.type=Console
appender.myConsole.layout.type=PatternLayout
appender.myConsole.layout.pattern=%highlight{[%d{ISO8601}][%p][%c][%M][START]%msg[END]%n}
# File Appender
appender.myFile.name=myFileAppender
appender.myFile.type=File
appender.myFile.fileName=${logFilename}
appender.myFile.append=false
appender.myFile.layout.type=PatternLayout
appender.myFile.layout.pattern=%highlight{[%d{ISO8601}][%p][%c][%M][START]%msg[END]%n}
appender.myFile.immediateFlush=true
#-------------------------------------------------------------------------------------------
# Loggers
#-------------------------------------------------------------------------------------------
# Netty
logger.myNettyLogger.name=io.netty
logger.myNettyLogger.level=warn
logger.myNettyLogger.appenderRef.stdout.ref=myConsoleAppender
logger.myNettyLogger.additivity=false
# internal
logger.myInternalNettyLogger.name=io.netty.util.internal
logger.myInternalNettyLogger.level=warn
logger.myInternalNettyLogger.appenderRef.stdout.ref=myConsoleAppender
logger.myInternalNettyLogger.additivity=false
# reactor
logger.myReactorNettyLogger.name=reactor.netty
logger.myReactorNettyLogger.level=warn
logger.myReactorNettyLogger.appenderRef.stdout.ref=myConsoleAppender
logger.myReactorNettyLogger.additivity=false
# Root logger
rootLogger.level=info
rootLogger.appenderRefs=myConsole
rootLogger.appenderRef.stdout.ref=myConsoleAppender
# Which is working
appenders=myConsole
loggers=myNettyLogger,myInternalNettyLogger,myReactorNettyLogger