aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>