aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorawudzins <adam.wudzinski@nokia.com>2020-02-24 14:37:52 +0100
committerawudzins <adam.wudzinski@nokia.com>2020-02-24 15:03:41 +0100
commit2966e97b0b15d287c928f545b3b713d58586f444 (patch)
tree059bdeac70936dd22fafe8058c3c742526061fb5
parent2edef3c2aaafba49439e20aa13eb647c67c781d5 (diff)
Align logging
Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Issue-ID: AAF-997 Change-Id: I35719fcc69c5227e65e273451a52c3c29cf11cfc
-rw-r--r--certService/README.md4
-rw-r--r--certService/src/main/resources/log4j2.xml15
2 files changed, 9 insertions, 10 deletions
diff --git a/certService/README.md b/certService/README.md
index f9478bed..23cb2cf6 100644
--- a/certService/README.md
+++ b/certService/README.md
@@ -52,12 +52,12 @@ mvn clean install -P docker
### Running Docker container local
```
-docker run -p 8080:8080 --name aaf-certservice-api onap/org.onap.aaf.certservice.aaf-certservice-api
+docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json onap/org.onap.aaf.certservice.aaf-certservice-api
```
### Running Docker container from nexus
```
-docker run -p 8080:8080 --name aaf-certservice-api nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:1.0.0
+docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:1.0.0
```
### Running Docker container from docker-compose with EJBCA
diff --git a/certService/src/main/resources/log4j2.xml b/certService/src/main/resources/log4j2.xml
index 48cc23c8..f814b4bd 100644
--- a/certService/src/main/resources/log4j2.xml
+++ b/certService/src/main/resources/log4j2.xml
@@ -14,25 +14,24 @@
<LevelRangeFilter maxLevel="ERROR" minLevel="ERROR"/>
<PatternLayout pattern="[%d{ISO8601}][%-5p][%-5c] %m%n"/>
<Policies>
- <SizeBasedTriggeringPolicy size="64 MB"/>
+ <SizeBasedTriggeringPolicy size="50 MB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
- <RollingFile fileName="var/log/onap/aaf/certservice/trace.log" filePattern="logs/trace-%d{yyyy-MM-dd}-%i.log" name="TRACE_LOG">
- <LevelRangeFilter maxLevel="TRACE" minLevel="ERROR"/>
+ <RollingFile fileName="var/log/onap/aaf/certservice/debug.log" filePattern="logs/debug-%d{yyyy-MM-dd}-%i.log" name="DEBUG_LOG">
+ <LevelRangeFilter maxLevel="DEBUG" minLevel="ERROR"/>
<PatternLayout pattern="[%d{ISO8601}][%-5p][%-5c] %m%n"/>
<Policies>
- <SizeBasedTriggeringPolicy size="64 MB"/>
+ <SizeBasedTriggeringPolicy size="50 MB"/>
</Policies>
- <DefaultRolloverStrategy max="10"/>
</RollingFile>
<RollingFile fileName="var/log/onap/aaf/certservice/audit.log" filePattern="logs/audit-%d{yyyy-MM-dd}-%i.log" name="AUDIT_LOG">
<LevelRangeFilter maxLevel="INFO" minLevel="INFO"/>
<PatternLayout pattern="[%d{ISO8601}][%-5p][%-5c] %m%n"/>
<Policies>
- <SizeBasedTriggeringPolicy size="32 MB"/>
+ <SizeBasedTriggeringPolicy size="50 MB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
@@ -48,10 +47,10 @@
<Logger name="io.micrometer" level="ERROR"/>
<Logger name="io.swagger" level="ERROR"/>
- <Root additivity="false" level="TRACE">
+ <Root additivity="false" level="DEBUG">
<AppenderRef ref="CONSOLE"/>
<AppenderRef ref="ERROR_LOG"/>
- <AppenderRef ref="TRACE_LOG"/>
+ <AppenderRef ref="DEBUG_LOG"/>
<AppenderRef ref="AUDIT_LOG"/>
</Root>