Skip to content

feat: add log-local-time flag for local timezone in logs#1589

Closed
HueCodes wants to merge 1 commit intocloudflare:masterfrom
HueCodes:feat/log-local-time
Closed

feat: add log-local-time flag for local timezone in logs#1589
HueCodes wants to merge 1 commit intocloudflare:masterfrom
HueCodes:feat/log-local-time

Conversation

@HueCodes
Copy link

Add a --log-local-time flag that configures cloudflared to use local
timezone for log timestamps instead of the default UTC.

This helps users correlate logs with local system events and other
services running in their timezone.

The flag can also be set via the TUNNEL_LOG_LOCAL_TIME environment
variable.

Closes #1530

Add a --log-local-time flag that configures cloudflared to use local
timezone for log timestamps instead of the default UTC.

This helps users correlate logs with local system events and other
services running in their timezone.

The flag can also be set via the TUNNEL_LOG_LOCAL_TIME environment
variable.

Closes cloudflare#1530
@jcsf
Copy link
Contributor

jcsf commented Mar 3, 2026

Hi,
Thank your for your contribution. We took your suggestion, but we consider that what is trying to be achieved here can easily be done with a log aggregator. Cloudflared already exposes the timestamp with the timezone, so it should be very easy to take the logs to a log aggregator and see them in local time. Therefore, we are closing this PR.

Regards.

@jcsf jcsf closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡Option to Use Local Timezone in Log Output

2 participants