Discover Packages
github.com/shahiinn/jfrog-client-go
utils
log
package
Version:
v1.33.0
Opens a new window with list of versions in this module.
Published: Jul 5, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types Debug(a) Error(a) Info(a) Output(a) SetLogger(newLogger) Warn(a) type LevelType type Log type LogFormat GetLogLevel() NewLogger(logLevel, logToWriter) (f) Path(message) (f) URL(message)
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.