Projects STRLCPY tun2socks Commits d061f1c0
🤬
  • ■ ■ ■ ■ ■
    log/log.go
    1 1  package log
    2 2   
    3 3  import (
     4 + "io"
    4 5   "os"
    5 6   
    6 7   "github.com/sirupsen/logrus"
    skipped 6 lines
    13 14  func init() {
    14 15   logrus.SetOutput(os.Stdout)
    15 16   logrus.SetLevel(logrus.DebugLevel)
     17 +}
     18 + 
     19 +func SetOutput(out io.Writer) {
     20 + logrus.SetOutput(out)
    16 21  }
    17 22   
    18 23  func SetLevel(level Level) {
    skipped 41 lines
Please wait...
Page is in error, reload to recover