Brad Fitzpatrick <
brad...@golang.org>
writes:
> It's generally considered unfortunate that the syslog package was even
> included in the standard library.
>
> I don't think changes will be welcome, as it's just then a reminder
> that it's there at all.
To be clear, it's not so much syslog support I want *in* glog, but I'd
like to use glog and syslog (or other log delivery mechanisms) together.
I currently do this with the built-in logger two ways:
1. By turning off timestamps and overriding the Writer at startup.
2. By using logexec[0]
It might be as simple as putting stderr into a variable and making the
timestamp optional (I was going to suggesting making the format
modifiable, but it seems like glog is pretty well beyond that).
Just being able to turn off timestamps might be enough, as I could at
least use logexec (which I often do anyway so I can log panics).
[0]:
https://github.com/dustin/logexec
--
dustin