On Thu, Mar 16, 2023 at 5:27 PM Ian Lance Taylor <i...@golang.org> wrote: > > [ + jba ] > > On Thu, Mar 16, 2023 at 8:56 AM 'Stuart McLean' via golang-nuts > <golang-nuts@googlegroups.com> wrote: > > > > Hi there, > > > > With glog v1.0.0 I used to be able to easily capture stderr logs for in > > integration tests. With the upgraded version this no longer works. I tried > > various suggestions that I found online and even this library: > > https://github.com/zenizh/go-capturer but nothing seems to work.
By default glog only prints ERROR level and above to stderr. Did you try to pass the -alsologtostderr flag to your program (or set it via flag.Set("alsologtostderr", "true"))? > > > > Is there a way to configure glog to write to a specific file that I can > > read from after? > > > > Thanks for your time, > > Stuart McLean > > > > -- > > 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/20CCAFD5-6400-4C68-BFBC-AB41F7FA7853%40mac.com. > > -- > 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/CAOyqgcVMFDOoqW82mwkab-4KYFPZ6H3So6xoKuudRhK%3D49niQw%40mail.gmail.com. -- 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/CAPgVe6O2wTa%3D%2BcZx9VsM_%3DPEryhYqxyVmXB%2BuDyowKDrBHL5Hg%40mail.gmail.com.