71 lines
2.0 KiB
Properties
71 lines
2.0 KiB
Properties
name=PropertiesConfig
|
|
property.filename = logs
|
|
appenders = console, file
|
|
|
|
|
|
# Création des appenders (interfaces) pour les sorties fichier et console
|
|
appender.console.type = Console
|
|
appender.console.name = STDOUT
|
|
appender.console.layout.type = PatternLayout
|
|
appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
|
|
|
|
appender.file.type = File
|
|
appender.file.name = LOGFILE
|
|
appender.file.fileName=${filename}/ngcclogs.log
|
|
appender.file.layout.type=PatternLayout
|
|
appender.file.layout.pattern=[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
|
|
|
|
|
|
#Création des loggers
|
|
|
|
loggers = console, f, e, w, i, d
|
|
|
|
logger.f.name = fatalLogger
|
|
logger.f.level = fatal
|
|
logger.f.additivity = false
|
|
logger.f.appenderRefs = console
|
|
logger.f.appenderRef.console.ref = STDOUT
|
|
logger.f.appenderRef.file.ref = LOGFILE
|
|
|
|
logger.e.name = errorLogger
|
|
logger.e.level = error
|
|
logger.e.additivity = false
|
|
logger.e.appenderRefs = console
|
|
logger.e.appenderRef.console.ref = STDOUT
|
|
logger.e.appenderRef.file.ref = LOGFILE
|
|
|
|
logger.w.name = warnLogger
|
|
logger.w.level = warn
|
|
logger.w.additivity = false
|
|
logger.w.appenderRefs = console
|
|
logger.w.appenderRef.console.ref = STDOUT
|
|
logger.w.appenderRef.file.ref = LOGFILE
|
|
|
|
logger.i.name = infoLogger
|
|
logger.i.level = info
|
|
logger.i.additivity = false
|
|
logger.i.appenderRefs = console
|
|
logger.i.appenderRef.console.ref = STDOUT
|
|
logger.i.appenderRef.file.ref = LOGFILE
|
|
|
|
logger.d.name = debugLogger
|
|
logger.d.level = debug
|
|
logger.d.additivity = false
|
|
logger.d.appenderRefs = console
|
|
logger.d.appenderRef.console.ref = STDOUT
|
|
logger.d.appenderRef.file.ref = LOGFILE
|
|
|
|
|
|
logger.console.name = log4j
|
|
logger.console.level = warn
|
|
logger.console.additivity = false
|
|
logger.console.appenderRefs = console
|
|
logger.console.appenderRef.console.ref = STDOUT
|
|
logger.console.appenderRef.file.ref = LOGFILE
|
|
|
|
|
|
# Root Logger (par défaut)
|
|
rootLogger.level = debug
|
|
rootLogger.appenderRefs = stdout, file
|
|
rootLogger.appenderRef.stdout.ref = STDOUT
|
|
rootLogger.appenderRef.file.ref = LOGFILE |