summaryrefslogtreecommitdiffstats
path: root/policy-management/src/main/server/config
diff options
context:
space:
mode:
authorjrh3 <jrh3@att.com>2017-08-23 09:40:28 -0400
committerjrh3 <jrh3@att.com>2017-08-23 16:13:16 -0400
commit95dafe8eaedf270c639adf0e51481f0172d2b808 (patch)
tree4868942f1509366f079afdcfd35e33450eb3fa2c /policy-management/src/main/server/config
parent36cf73f8313cbd1baac4bc41565bee23690fc152 (diff)
Add access.log to jetty server
Added a single line to the code that creates the jetty server so that it will log messages in access.log format. Also added lines to various logback.xml files to actually write the output from the jetty server to the access.log. Made some revisions per comments: - removed spaces around parameters - added "Out" suffix - changed suffix of archived files - changed size to 1MB Modified logback*.xml files to include jetty "access log" content in the already-existing network.log. Issue-Id: POLICY-161 Change-Id: I3e3769c06a22aaffea0e09abbec3387cc62f246f Signed-off-by: jrh3 <jrh3@att.com>
Diffstat (limited to 'policy-management/src/main/server/config')
-rw-r--r--policy-management/src/main/server/config/logback.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/policy-management/src/main/server/config/logback.xml b/policy-management/src/main/server/config/logback.xml
index 53d73434..1801c43a 100644
--- a/policy-management/src/main/server/config/logback.xml
+++ b/policy-management/src/main/server/config/logback.xml
@@ -75,7 +75,7 @@
<appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logDir}/${networkLog}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
- <fileNamePattern>logs/network.log.%i.zip</fileNamePattern>
+ <fileNamePattern>${logDir}/${networkLog}.%i.log.zip</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
@@ -94,6 +94,10 @@
<logger name="network" level="INFO" additivity="false">
<appender-ref ref="AsyncNetworkOut" />
</logger>
+
+ <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
+ <appender-ref ref="AsyncNetworkOut" />
+ </logger>
<root level="INFO">
<appender-ref ref="AsyncDebugOut" />