Skip to content

stdout / stderr logs #43

Closed Answered by d-Rickyy-b
uggyuggy asked this question in Q&A
Discussion options

You must be logged in to vote

Go uses stderr as output by default for their basic logging library (src/log/log.go).

This is in compliance with the POSIX standard, which defines the three streams (stdin, stdout, stderr) as follows:

standard input (for reading conventional input), standard output (for writing conventional output), and standard error (for writing diagnostic output).

(see also https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html)

This project uses the Go standard logger. It's certainly debatable if logs are "conventional output for a server application", since it's not comparable with say a CLI application. There has been a nice conversation on reddit about exactly this topic: https://…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by d-Rickyy-b
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants