We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch config.GetInt("LogLevel") {
25 case 0: 26 jww.SetLogThreshold(jww.LevelError) 27 jww.SetStdoutThreshold(jww.LevelWarn) 28 case 1: 29 jww.SetLogThreshold(jww.LevelWarn) 30 jww.SetStdoutThreshold(jww.LevelInfo) 31 case 2: 32 jww.SetLogThreshold(jww.LevelInfo) 33 jww.SetStdoutThreshold(jww.LevelInfo) 34 case 3: 35 jww.SetLogThreshold(jww.LevelDebug) 36 jww.SetStdoutThreshold(jww.LevelDebug) 37 default: 38 jww.FATAL.Println("Invalid debug level specified:", config.GetInt("LogLevel")) 39 } 40 jww.SetLogFile(config.GetString("LogFile"))
Results in a ./archit.go:40: undefined: jwalterweatherman.SetLogFile compilation error. All the other functions appear to compile fine.
The text was updated successfully, but these errors were encountered:
I refurbished this library a couple of days ago so you can use in a non-global context, with one breaking change.
Use:
SetLogOutput(handle io.Writer)
And provide a os.File or another writer of choice.
os.File
Sorry, something went wrong.
No branches or pull requests
25 case 0:
26 jww.SetLogThreshold(jww.LevelError)
27 jww.SetStdoutThreshold(jww.LevelWarn)
28 case 1:
29 jww.SetLogThreshold(jww.LevelWarn)
30 jww.SetStdoutThreshold(jww.LevelInfo)
31 case 2:
32 jww.SetLogThreshold(jww.LevelInfo)
33 jww.SetStdoutThreshold(jww.LevelInfo)
34 case 3:
35 jww.SetLogThreshold(jww.LevelDebug)
36 jww.SetStdoutThreshold(jww.LevelDebug)
37 default:
38 jww.FATAL.Println("Invalid debug level specified:", config.GetInt("LogLevel"))
39 }
40 jww.SetLogFile(config.GetString("LogFile"))
Results in a ./archit.go:40: undefined: jwalterweatherman.SetLogFile
compilation error. All the other functions appear to compile fine.
The text was updated successfully, but these errors were encountered: