add timestamps to install log 55/33855/1
authorSmokowski, Kevin (ks6305) <ks6305@att.com>
Fri, 2 Mar 2018 21:02:31 +0000 (21:02 +0000)
committerSmokowski, Kevin (ks6305) <ks6305@att.com>
Fri, 2 Mar 2018 21:02:31 +0000 (21:02 +0000)
Currently the logger doesn't output any timestamps so reading the logs is difficult. This change enables timestamps in the logs.

Change-Id: Ie31eaa62499d7c8533811c56f474b4c597f4fa7d
Issue-ID: CCSDK-193
Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
dgbuilder/svclogic/svclogic.sh

index 4c0d2da..f89ac98 100755 (executable)
@@ -11,4 +11,4 @@ do
     CLASSPATH=$CLASSPATH:${jar}
 done
 #echo "CLASSPATH is ${CLASSPATH}"
-java  -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER}:${SLI_COMMON_JAR} org.onap.ccsdk.sli.core.sli.SvcLogicParser $*
+java  -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat="yyyy-MM-dd HH:mm:ss" -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER}:${SLI_COMMON_JAR} org.onap.ccsdk.sli.core.sli.SvcLogicParser $*

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use