Actually I realized I can get the behavior I want using log.SetOutput and glog.InfoDepth(3, ...) + some original log parsing but it'd be nice to have something built-in in glog.
On Friday, December 20, 2019 at 11:01:52 AM UTC-8, Dmitry Ilyevsky wrote: > > Hi All, > > I was wondering if something like MoveStandardLogTo could be added to > golang/glog package in addition to CopyStandardLogTo that would NOT also > emit redirected log on stderr. Currently when I try to DIY it via > log.SetOutput I get header nesting like so (which is slightly annoying): > > I1220 10:53:17.471917 94554 main.go:20] 2019/12/20 10:53:17 test log > print > > I can prepare a patch if maintainers are OK with this change. > > Thanks, > -Dmitry > -- 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/5819fc87-f199-4cf8-8bc6-12e9a59fa8a3%40googlegroups.com.