On 2017-08-14 11:04, dc0d wrote:
> That may be (still IMH-Experience in the majority of cases, this is the
> proper default to go).
> 
> But the main concern to express here is, the default logger should
> accept an interface like /Output/ instead of /io.Writer/.

I would agree, if not for the fact that there seem to be very little
consensus on exactly what such an interface should look like.

systemd support a very simple (but useful) interface for leveled
logging. Just prefix what you write to stdout or stderr with "<X>" where
X is the syslog log-level. Systemd takes care of anything else.
Exactly this is pretty much impossible to do efficiently with many
log-packages, including the stdlib "log".

/Peter

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to