Documentation ¶
Index ¶
- func Debug(a ...interface{})
- func Error(a ...interface{})
- func Info(a ...interface{})
- func NewLogger(logLevel LevelType, logToWriter io.Writer) *jfrogLogger
- func NewLoggerWithFlags(logLevel LevelType, logToWriter io.Writer, logFlags int) *jfrogLogger
- func Output(a ...interface{})
- func SetLogger(newLogger Log)
- func Warn(a ...interface{})
- type LevelType
- type Log
- type LogFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerWithFlags ¶
Creates a new logger with a given LogLevel. All logs are written to Stderr by default (output to Stdout). If logToWriter != nil, logging is done to the provided writer instead. Log flags to modify the log prefix as described in https://pkg.go.dev/log#pkg-constants.
Types ¶
type Log ¶
type Log interface { Debug(a ...interface{}) Info(a ...interface{}) Warn(a ...interface{}) Error(a ...interface{}) Output(a ...interface{}) }
var Logger Log
Click to show internal directories.
Click to hide internal directories.