From 95dafe8eaedf270c639adf0e51481f0172d2b808 Mon Sep 17 00:00:00 2001 From: jrh3 Date: Wed, 23 Aug 2017 09:40:28 -0400 Subject: 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 --- feature-eelf/src/main/feature/config/logback-eelf.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'feature-eelf/src/main/feature') diff --git a/feature-eelf/src/main/feature/config/logback-eelf.xml b/feature-eelf/src/main/feature/config/logback-eelf.xml index 7c2725d8..d76eb20b 100644 --- a/feature-eelf/src/main/feature/config/logback-eelf.xml +++ b/feature-eelf/src/main/feature/config/logback-eelf.xml @@ -33,7 +33,7 @@ + value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{RequestId}|%thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{ErrorCategory}|%X{ErrorCode}|%X{ErrorDesciption}|%msg%replace(%xException){'\n',' - '}%nopex%n" /> @@ -142,7 +142,8 @@ ${logDirectory}/${networkLogName}.log - logs/network.log.%i.zip + ${logDirectory}/${networkLogName}.%i.log.zip + 1 5 @@ -178,6 +179,10 @@ + + + + -- cgit 1.2.3-korg