Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Showing Dates / Timestamps for log entries

See original GitHub issue

I really like the logdown.js project but does it support timestamps in front of log messages?

We are looking for something that can replace our current log library which gives us these features:


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

caiogondimcommented, Sep 29, 2016

For timestamps in Chrome you can use this checkbox: sep-29-2016 13-49-43

But that would work only in Chrome, not in other browsers or Node.js We can implement this Seems to be easy and straight forward

I’m thinking in an API similar to

// Prints timestamp in the format `2016-08-13` or `YYYY-MM-DD`
const logger1 = new Logdown({
  prefix: 'lorem',
  timestamp: true

// If a string is passed, we use it as a template for formatting the timestamp
const logger2 = new Logdown({
  prefix: 'lorem',
  timestamp: 'MM/DD/YYYY'

// Throws an error in case we can't parse the string passed as template
const logger3 = new Logdown({
  prefix: 'lorem',
  timestamp: 'ipsum'


caiogondimcommented, Oct 24, 2016


Read more comments on GitHub >

github_iconTop Results From Across the Web

Time stamp on log entries - java - Stack Overflow
I have some log entries which uses log4j. Now, can I rely on the timestamps on the log entries to get an approximate...
Read more >
Event Viewer entries timestamp - Microsoft Q&A
The records for the event are timestamped in UTC. When you view the event log, the viewer adjusts the timestamp to the current...
Read more >
Display timestamp field in date format for a log table in a ...
I'm inserting timestamp fields into the logs, and I've been unable to display the values in date+time format in a Log Table widget....
Read more >
Log timestamp configuration | Dynatrace Docs
When Log Monitoring is unable to determine the time format, it treats each log line as a separate log entry with an automatically...
Read more >
Appending timestamp stamp along with log file lines
The problem is the $(date -R) evaluated once when you run the script so it will insert current timestamp to the beginning of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found