question-mark
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.

Timezone and naming of logfiles

See original GitHub issue

In lib/logs.js Date().toISOString() is used to generate a datestring for the logfiles. The timezone for it is always UTC. Could we have a local timezone here?

Also: What happens when you enable multiple servers for autostart? Will multiple logfiles “collide” with each other because of a same name? As a solution could we have the filename suffixed with the actual servername?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Dahlgrencommented, Jul 10, 2021

UTC is the most correct as admins might be from multiple timezones. It also takes care of winter vs summer time. UTC never lies 😃

0reactions
formtapezcommented, Jul 10, 2021

#197 works great, thanks. #198 I would prefer to have the correct timestamp in the filename itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the Timezone for the timestamps in the ...
How to change the Timezone for the timestamps in the LucidWorks log files · 1. Identify the log4j-connectors. · 2. Edit the above...
Read more >
logfiles and daylight savings time - Unix & Linux Stack Exchange
I'm thinking that I should set the system time to UTC and then process the logfiles into local timezone before handing off to...
Read more >
Date and time for log files different to `date`, `timezone` etc
Save this question. On a Ubuntu 14.04 vps, my timezone is set to UTC/GMT. This remains the case even after a service rsyslog...
Read more >
Boost log file names in a different timezone - Stack Overflow
Is there any way to change the timezone of the datetime object? I would like to use a timezone that rolls at 5PM...
Read more >
Incorrect time stamps displayed by an application or in log files
The files local time and time zone are usually symbolic links to the appropriate time zone file, but it is not always the...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found