log

package
v0.0.0-...-e5c8c29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
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 DPanicf

func DPanicf(template string, args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

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

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL