diff options
author | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-03-04 14:06:35 +0000 |
---|---|---|
committer | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-03-04 14:06:35 +0000 |
commit | ee6c134312bff3506f4f7eca695dad7d0dfec2d9 (patch) | |
tree | 179e415ac73a8e8e2a6f2c3fca0ab950b7cee29f | |
parent | 92d3092901ab1866766953e5f8d74bacf27bbc8f (diff) |
Resolved RollingFileAppender(filePattern) issue
Issue-ID: CLI-249
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com>
Change-Id: I49a2187230deaed431f64e4007dee06f0dc799ff
4 files changed, 4 insertions, 4 deletions
diff --git a/deployment/zip/src/main/release/conf/log4j2.properties b/deployment/zip/src/main/release/conf/log4j2.properties index 495c5d55..b8ae7604 100644 --- a/deployment/zip/src/main/release/conf/log4j2.properties +++ b/deployment/zip/src/main/release/conf/log4j2.properties @@ -45,7 +45,7 @@ appender.stdout.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n appender.file.type = RollingFile appender.file.name = RollingFile appender.file.fileName=${env:OPEN_CLI_HOME}/logs/open-cli.log -appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.log +appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.%d{yyyy-MM-dd-HH:mm:ss}.log appender.file.append=true appender.file.policies.type=Policies appender.file.policies.size.type=SizeBasedTriggeringPolicy diff --git a/framework/src/main/resources/log4j2.properties b/framework/src/main/resources/log4j2.properties index c8e38ab0..2c3eccc8 100644 --- a/framework/src/main/resources/log4j2.properties +++ b/framework/src/main/resources/log4j2.properties @@ -45,7 +45,7 @@ appender.stdout.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n appender.file.type = RollingFile appender.file.name = RollingFile appender.file.fileName=${env:OPEN_CLI_HOME}/logs/open-cli.log -appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.log +appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.%d{yyyy-MM-dd-HH:mm:ss}.log appender.file.append=true appender.file.policies.type=Policies appender.file.policies.size.type=SizeBasedTriggeringPolicy diff --git a/grpc/grpc-client/src/main/resources/log4j2.properties b/grpc/grpc-client/src/main/resources/log4j2.properties index b6d01949..9ccd2266 100644 --- a/grpc/grpc-client/src/main/resources/log4j2.properties +++ b/grpc/grpc-client/src/main/resources/log4j2.properties @@ -44,7 +44,7 @@ appender.stdout.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n appender.file.type = RollingFile appender.file.name = RollingFile appender.file.fileName=${env:OPEN_CLI_HOME}/logs/open-cli.log -appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.log +appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.%d{yyyy-MM-dd-HH:mm:ss}.log appender.file.append=true appender.file.policies.type=Policies appender.file.policies.size.type=SizeBasedTriggeringPolicy diff --git a/grpc/grpc-server/src/main/resources/log4j2.properties b/grpc/grpc-server/src/main/resources/log4j2.properties index a0c2af95..a766d6f7 100644 --- a/grpc/grpc-server/src/main/resources/log4j2.properties +++ b/grpc/grpc-server/src/main/resources/log4j2.properties @@ -46,7 +46,7 @@ appender.stdout.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n appender.file.type = RollingFile appender.file.name = RollingFile appender.file.fileName=${env:OPEN_CLI_HOME}/logs/open-cli.log -appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.log +appender.file.filePattern=${env:OPEN_CLI_HOME}/logs/open-cli.%d{yyyy-MM-dd-HH:mm:ss}.log appender.file.append=true appender.file.policies.type=Policies appender.file.policies.size.type=SizeBasedTriggeringPolicy |