Skip to content

Commit

Permalink
Merge pull request #142 from Cinimex-Informatica/feature/issue141_def…
Browse files Browse the repository at this point in the history
…ault_log4jconfig

 default log4j config is included in jar now
  • Loading branch information
echerniak authored Oct 24, 2019
2 parents 852f74d + fc75022 commit c8fa8af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<configuration>
<excludes>
<exclude>**/exporter_config.yaml</exclude>
<exclude>**/log4j2.properties</exclude>
</excludes>
<archive>
<manifest>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static List<PCFType> 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;
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit c8fa8af

Please sign in to comment.