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

feat: Allow users to set json log output #1026

Closed
wants to merge 1 commit into from
Closed

feat: Allow users to set json log output #1026

wants to merge 1 commit into from

Conversation

NoUseFreak
Copy link

Add -format=json options to allow logging in json format.

{"time":"2023-11-04T11:17:26.702372+01:00","level":"INFO","msg":"Using '/workdir/tusd/data' as directory storage."}
{"time":"2023-11-04T11:17:26.702557+01:00","level":"INFO","msg":"Using 0.00MB as maximum size."}
{"time":"2023-11-04T11:17:26.702594+01:00","level":"INFO","msg":"Supported tus extensions: creation,creation-with-upload,termination,concatenation,creation-defer-length"}
{"time":"2023-11-04T11:17:26.7026+01:00","level":"INFO","msg":"Using 0.0.0.0:8080 as address to listen."}
{"time":"2023-11-04T11:17:26.702603+01:00","level":"INFO","msg":"Using /files/ as the base path."}
{"time":"2023-11-04T11:17:26.702631+01:00","level":"INFO","msg":"Using /metrics as the metrics path."}
{"time":"2023-11-04T11:17:26.702947+01:00","level":"INFO","msg":"You can now upload files to: http://[::]:8080/files/"}

Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

cmd/tusd/cli/flags.go Outdated Show resolved Hide resolved
cmd/tusd/cli/log.go Outdated Show resolved Hide resolved
cmd/tusd/cli/log.go Show resolved Hide resolved
@Acconut
Copy link
Member

Acconut commented Dec 5, 2023

Thank you for the PR! I has been merged in 9b6ada9 🎉 I apologize that your authorship of this commit got lost when I added a commit locally and squashed them together.

@Acconut Acconut closed this Dec 5, 2023
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