How can the log entries be be stamped with date and time? Currently I see only the time.
-
Date/time stamp in pimatic-daemon.log
-
@heizelmann Quick hack would be:
Index: lib/logger.coffee IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lib/logger.coffee (revision a4f1d80fe614281a94ee347b4f9b2f5cc0334bc8) +++ lib/logger.coffee (date 1551618848000) @@ -40,7 +40,7 @@ @prevTimestamp = timestamp timeString = moment(@prevTimestamp).format("HH:mm:ss.SSS YYYY-MM-DD dddd") if @colorize then timeString = timeString.grey - timeString = moment(timestamp).format("HH:mm:ss.SSS") + timeString = moment(timestamp).format("HH:mm:ss.SSS YYYY-MM-DD dddd") tags = " [" + tags.join(", ") + "]" if @colorize timeString = timeString.grey
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten -
@michbeck100 Thanks a lot , this helped.
I found ‘logger.coffee’ in ‘node_modules/pimatic/lib’ and changed the line to
timeString = moment(timestamp).format("YYYY-MM-DD HH:mm:ss.SSS")