Documentation
¶
Index ¶
- Variables
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Printf(format string, args ...interface{})
- func SetGlobalLevel(level LogLevel)
- func SetGlobalTimestamp(timestamp bool)
- func SetGlobalVerbose(verbose bool)
- func Success(format string, args ...interface{})
- func Warning(format string, args ...interface{})
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetTimestamp(timestamp bool)
- func (l *Logger) SetVerbose(verbose bool)
- func (l *Logger) Success(format string, args ...interface{})
- func (l *Logger) Warning(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = NewLogger()
Default é a instância global do logger
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Funções helper para usar a instância global
func SetGlobalLevel ¶
func SetGlobalLevel(level LogLevel)
SetGlobalLevel define o nível de log para a instância global
func SetGlobalTimestamp ¶
func SetGlobalTimestamp(timestamp bool)
SetGlobalTimestamp define se o timestamp deve ser incluído na instância global
func SetGlobalVerbose ¶
func SetGlobalVerbose(verbose bool)
SetGlobalVerbose define o modo verbose para a instância global
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger é a estrutura principal do logger
func (*Logger) SetTimestamp ¶
SetTimestamp define se o timestamp deve ser incluído
func (*Logger) SetVerbose ¶
SetVerbose define se o modo verbose está ativo
Click to show internal directories.
Click to hide internal directories.