Revert the Log to a Human Readable Format 63/38763/2
authorYiLi <li.yi101@zte.com.cn>
Tue, 27 Mar 2018 01:57:32 +0000 (09:57 +0800)
committerYiLi <li.yi101@zte.com.cn>
Tue, 27 Mar 2018 02:06:46 +0000 (10:06 +0800)
Change-Id: If140469fbf977c17b256ecb9ab1f2a64f3235bfc
Issue-ID: HOLMES-125
Signed-off-by: YiLi <li.yi101@zte.com.cn>
rulemgt-standalone/src/main/assembly/conf/rulemgt.yml

index adf9c76..a043ab2 100644 (file)
@@ -31,21 +31,22 @@ logging:
 
     # Sets the level for 'com.example.app' to DEBUG.
     org.onap.holmes.rulemgt: ALL
-  
+
   appenders:
     - type: console
       threshold: ALL
       timeZone: UTC
-      logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|[%mdc]\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
+      logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
     - type: file
       threshold: ERROR
-      logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
-      currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-error.log
+      #logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
+      logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
+      currentLogFilename: ../logs/ONAP/holmes/rulemgt-relation-error.log
       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
       archivedFileCount: 7
     - type: file
       threshold: DEBUG
-      logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
+      logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
       currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-debug.log
       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-debug-%d{yyyy-MM-dd}.log.gz
       archivedFileCount: 7