Documentation ¶
Index ¶
- Constants
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Output(a ...interface{})
- func Warn(a ...interface{})
- type LevelType
- type Log
- type Logger
- func (logger *Logger) Debug(a ...interface{})
- func (logger *Logger) Error(a ...interface{})
- func (logger *Logger) GetLogLevel() LevelType
- func (logger *Logger) Info(a ...interface{})
- func (logger *Logger) Output(a ...interface{})
- func (logger *Logger) Println(log *log.Logger, values ...interface{})
- func (logger *Logger) SetLogLevel(levelEnum LevelType)
- func (logger *Logger) SetLogsWriter()
- func (logger *Logger) SetOutputWriter()
- func (logger *Logger) Warn(a ...interface{})
Constants ¶
View Source
const (
LogLevelEnv = "JFROG_LOG_LEVEL"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Log interface { Debug(a ...interface{}) Info(a ...interface{}) Warn(a ...interface{}) Error(a ...interface{}) Output(a ...interface{}) GetLogLevel() LevelType }
type Logger ¶
type Logger struct { LogLevel LevelType OutputLog *log.Logger DebugLog *log.Logger InfoLog *log.Logger WarnLog *log.Logger ErrorLog *log.Logger // contains filtered or unexported fields }
func (*Logger) GetLogLevel ¶
func (*Logger) SetLogLevel ¶
func (*Logger) SetLogsWriter ¶
func (logger *Logger) SetLogsWriter()
func (*Logger) SetOutputWriter ¶
func (logger *Logger) SetOutputWriter()
Click to show internal directories.
Click to hide internal directories.