Documentation ¶
Index ¶
- Variables
- func DPanicf(template string, args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitLogger(loggingProgram string)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var ErrorWriter = errorWriter{}
TODO: Convert this into a function maybe? Which returns a singleton, instead of exposing a variable that can be changed by other entities in other packages. But yeah, errorWriter struct type is not exported, so people can't change it to any other value
var InfoWriter = infoWriter{}
TODO: Convert this into a function maybe? Which returns a singleton, instead of exposing a variable that can be changed by other entities in other packages. But yeah, logWriter struct type is not exported, so people can't change it to any other value
Functions ¶
func InitLogger ¶
func InitLogger(loggingProgram string)
TODO: Check what happens when multiple tests run in parallel and call this. Does it support multiple parallel tests logging to different files? Or is there any problems due to the usage of global loggers and zap.ReplaceGlobals 😅 in which case we have to resort to using local loggers along with passing around loggers for usage in functions / methods etc
Types ¶
This section is empty.