Skip to content

How to add timestamp to logs? #311

Answered by rcarmo
mariusa asked this question in Q&A
Discussion options

You must be logged in to vote

Since many applications will do that themselves and the timestamps would be redundant, that is not done by design. As an example, Node-RED does this:

web.1 | 14 Jun 13:50:18 - [error] [sqlite:340ca86b4f6f67bf] Sqlite database not configured
web.1 | 14 Jun 13:50:18 - [warn] [RED.events] Deprecated use of "nodes-started" event from "/home/piku/.piku/envs/rss/node_modules/node-red-contrib-persist/persist.js:164:20". Use "flows:started" instead.
web.1 | 14 Jun 13:50:18 - [warn] [RED.events] Deprecated use of "nodes-started" event from "/home/piku/.piku/envs/rss/node_modules/node-red-contrib-persist/persist.js:164:20". Use "flows:started" instead.
web.1 | 14 Jun 13:50:18 - [warn] [RED.events] …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mariusa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants