hi,

I want to add a prefix to the glog lines based on certain conditions of my 
program.

Browsing the glog code I found an example that seems exactly for that in 
package `glog/internal/logsync`:

https://github.com/golang/glog/blob/master/internal/logsink/logsink.go#L369 

 But unfortunately it is marked as `internal`, so not accessible. Any 
chances it could be made public ?

Or any suggestions on how to easily achieve the same result ?

Thanks!
Jan

ps.: I looked at other logging libraries, but I do require (use often) 
fine-grained level control of logging per file, like glog, and the 
libraries I checked (zap, logrus, zerolog, apex) don't seem to offer that.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/aa4e1207-bd7c-45f7-8ee1-113d53ac4982n%40googlegroups.com.

Reply via email to