Documentation ¶
Index ¶
- func Debug(a ...interface{})
- func Error(a ...interface{})
- func Info(a ...interface{})
- func IsColorsSupported() bool
- func IsStdErrTerminal() bool
- func IsStdOutTerminal() bool
- func NewLogger(logLevel LevelType, logToWriter io.Writer) *jfrogLogger
- func NewLoggerWithFlags(logLevel LevelType, writer io.Writer, logFlags int) *jfrogLogger
- func Output(a ...interface{})
- func SetIsTerminalFlagsWithCallback(isTerminal bool) func()
- 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 IsColorsSupported ¶ added in v1.15.0
func IsColorsSupported() bool
func NewLoggerWithFlags ¶ added in v1.8.0
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.
func SetIsTerminalFlagsWithCallback ¶ added in v1.15.0
func SetIsTerminalFlagsWithCallback(isTerminal bool) func()
SetIsTerminalFlagsWithCallback changes IsTerminal flags to the given value and return function that changes the flags back to the original values.
Types ¶
type Log ¶
type Log interface { Debug(a ...interface{}) Info(a ...interface{}) Warn(a ...interface{}) Error(a ...interface{}) Output(a ...interface{}) GetLogLevel() LevelType }
var Logger Log
Click to show internal directories.
Click to hide internal directories.