diff --git a/pom.xml b/pom.xml index 06077a6..e210e41 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,6 @@ **/exporter_config.yaml - **/log4j2.properties diff --git a/src/main/java/ru/cinimex/exporter/mq/pcf/PCFDataParser.java b/src/main/java/ru/cinimex/exporter/mq/pcf/PCFDataParser.java index 27a5a50..955f416 100644 --- a/src/main/java/ru/cinimex/exporter/mq/pcf/PCFDataParser.java +++ b/src/main/java/ru/cinimex/exporter/mq/pcf/PCFDataParser.java @@ -95,7 +95,7 @@ public static List getPCFTypes(PCFMessage pcfMessage) { topicString = groupParam.getStringValue(); break; default: - logger.warn("Unknown parameter type was found while parsing PCFType! Will be ignored. {} = {}", groupParam.getParameterName(), groupParam.getStringValue()); + logger.debug("Unknown parameter type was found while parsing PCFType! Will be ignored. {} = {}", groupParam.getParameterName(), groupParam.getStringValue()); break; } diff --git a/src/main/resources/log4j2.properties b/src/main/resources/log4j2.properties index bd10339..b24a398 100644 --- a/src/main/resources/log4j2.properties +++ b/src/main/resources/log4j2.properties @@ -21,7 +21,7 @@ appender.rolling.name = fileLogger appender.rolling.fileName= ${basePath}app.log appender.rolling.filePattern= ${basePath}app_%d{yyyyMMdd}.log appender.rolling.layout.type = PatternLayout -appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %level [%t] [%c] [%M] [%l] - %msg%n +appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %level - %msg%n appender.rolling.policies.type = Policies # Rotate log file each day and keep 30 days worth @@ -33,6 +33,8 @@ appender.rolling.strategy.delete.type = Delete appender.rolling.strategy.delete.basePath = ${basePath} appender.rolling.strategy.delete.maxDepth = 1 appender.rolling.strategy.delete.ifLastModified.type = IfLastModified +appender.rolling.policies.size.type = SizeBasedTriggeringPolicy +appender.rolling.policies.size.size=30MB # Delete files older than 30 days appender.rolling.strategy.delete.ifLastModified.age = 30d