go.undefinedlabs.com/scopeagent@v0.4.2/instrumentation/logging/logger_go13.go (about)

     1  // +build go1.13
     2  
     3  package logging
     4  
     5  import (
     6  	"io"
     7  	stdlog "log"
     8  )
     9  
    10  // Gets the standard logger writer
    11  func getStdLoggerWriter() io.Writer {
    12  	return stdlog.Writer() // This func exist from go1.13
    13  }
    14  
    15  // Gets the writer of a custom logger
    16  func getLoggerWriter(logger *stdlog.Logger) io.Writer {
    17  	return logger.Writer()
    18  }