diff options
Diffstat (limited to 'ms/generic-resource-api/src/main/resources/log4j2.properties')
-rw-r--r-- | ms/generic-resource-api/src/main/resources/log4j2.properties | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ms/generic-resource-api/src/main/resources/log4j2.properties b/ms/generic-resource-api/src/main/resources/log4j2.properties index 40d18d1..9bc78a3 100644 --- a/ms/generic-resource-api/src/main/resources/log4j2.properties +++ b/ms/generic-resource-api/src/main/resources/log4j2.properties @@ -18,7 +18,8 @@ # ============LICENSE_END========================================================= # -property.logDir = ${sys:LOG_PATH:-./target} +property.logDir = ${env:LOG_PATH:-./target} +property.logLevel = ${env:LOG_LEVEL:-INFO} property.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{currentGraph} - %X{nodeId} | %m%n @@ -27,13 +28,13 @@ property.ServiceName = INTERNAL property.ErrorCode = 900 property.ErrorDesc = UnknownError -rootLogger.level = INFO +rootLogger.level = ${logLevel} rootLogger.appenderRef.AppFile.ref = AppFile rootLogger.appenderRef.Console.ref = Console rootLogger.appenderRef.DebugFile.ref = DebugFile rootLogger.appenderRef.ErrorFile.ref = ErrorFile rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter -rootLogger.appenderRef.Console.filter.threshold.level = DEBUG +rootLogger.appenderRef.Console.filter.threshold.level = ${logLevel} appender.console.type = Console appender.console.name = Console @@ -69,6 +70,8 @@ appender.debug.policies.size.size = 10MB appender.debug.strategy.type = DefaultRolloverStrategy appender.debug.strategy.max = 200 appender.debug.strategy.fileIndex = min +appender.error.filter.threshold.type = ThresholdFilter +appender.error.filter.threshold.level = DEBUG appender.error.type = RollingRandomAccessFile appender.error.name = ErrorFile |