Skip to content

add flag to include timestamp in logs#890

Merged
jessepeterson merged 1 commit intomicromdm:mainfrom
korylprince:log-time
Jun 5, 2023
Merged

add flag to include timestamp in logs#890
jessepeterson merged 1 commit intomicromdm:mainfrom
korylprince:log-time

Conversation

@korylprince
Copy link
Contributor

There currently doesn't appear to be a way to have MicroMDM include a timestamp in it's logs. This PR adds a flag (default off) that will set the "ts" log key to the UTC timestamp.

@jessepeterson jessepeterson merged commit fbebd53 into micromdm:main Jun 5, 2023
@jessepeterson
Copy link
Member

from slack:

I always thought this was purposeful because the thing you’re sending the logs to would do its own timestamping (and, indeed, when run out of, say, systemd it does that for you). but i can’t think of a good reason not to have a switch to turn it on 🤷. so thanks again kory!

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.

2 participants