Discover Packages
github.com/jfrog/jfrog-client-go
utils
log
package
Version:
v1.6.2
Opens a new window with list of versions in this module.
Published: Nov 25, 2021
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{})
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.
func Output(a ...interface{})
func SetLogger(newLogger Log )
func Warn(a ...interface{})
type Log interface {
Debug(a ...interface{})
Info(a ...interface{})
Warn(a ...interface{})
Error(a ...interface{})
Output(a ...interface{})
}
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.