Discover Packages
github.com/jfrog/jfrog-client-go
utils
log
package
Version:
v0.27.3
Opens a new window with list of versions in this module.
Published: Mar 2, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 257
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Debug(a ...interface{})
func Error(a ...interface{})
func Info(a ...interface{})
func Output(a ...interface{})
func SetLogger(newLogger Log )
func Warn(a ...interface{})
type Log interface {
GetLogLevel() LevelType
SetLogLevel(LevelType )
SetOutputWriter(writer io .Writer )
SetLogsWriter(writer io .Writer )
Debug(a ...interface{})
Info(a ...interface{})
Warn(a ...interface{})
Error(a ...interface{})
Output(a ...interface{})
}
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.
Used for coloring sections of the log message. For example log.Format.Path("...")
Predefined color formatting functions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.