Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] allow configuring the time format on the log of mtg #292

Open
IceCodeNew opened this issue Jan 13, 2023 · 1 comment
Open

Comments

@IceCodeNew
Copy link

mtg only outputs logs in a format like below, it is not quite human-readable.
I am wondering if we could make a plan on supporting configuring the time format of the log.

{"level":"info","client-ip":"REDACTED","stream-id":"REDACTED","logger":"proxy","timestamp":1673594851101,"message":"Stream has been started"}
@9seconds
Copy link
Owner

9seconds commented Mar 9, 2023

Hi!

Sorry for the late reply: I have very busy time now.

It is kinda possible but actually violates what I've tried to achieve. mtg produces structured logs https://www.loggly.com/use-cases/what-is-structured-logging-and-how-to-use-it/ so it has to be mainly consumed by some other means. Timestamp here is UNIX time. I'm afraid I can't change this field without violating backward compatibility. What I can do is to introduce a new field, like "iso-datetime" that will have ISO8601 or RFCXXX (do not recall a number).

Unfortunately, I do not have a time for doing that now. I'll probably take a sprint at the end of march/april to complete all pending mtg-related tasks so will consider it as a feature to have.

Thanks :)

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

No branches or pull requests

2 participants