Documentation
¶
Index ¶
- Variables
- func Close() (err error)
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init(hs ...Handler)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Config
- type Handler
- type Handlers
- type Level
- type Verbose
- func (v Verbose) Close() error
- func (v Verbose) Error(args ...interface{})
- func (v Verbose) Errorf(format string, args ...interface{})
- func (v Verbose) Info(args ...interface{})
- func (v Verbose) Infof(format string, args ...interface{})
- func (v Verbose) Warn(args ...interface{})
- func (v Verbose) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultVerboseLevel = 0
DefaultVerboseLevel default Verbose level.
Functions ¶
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message at the error log level.
Types ¶
type Config ¶
type Config struct { Stdout bool Family string Host string Dir string // VLevel Enable V-leveled logging at the specified level. VLevel int32 }
Config log config.
type Handler ¶
Handler is used to handle log events, outputting them to stdio or sending them to remote services. See the "handlers" directory for implementations.
It is left up to Handlers to implement thread-safety.
type Verbose ¶
type Verbose bool
Verbose .
func (Verbose) Error ¶
func (v Verbose) Error(args ...interface{})
Error logs a message at the error log level.
func (Verbose) Info ¶
func (v Verbose) Info(args ...interface{})
Info logs a message at the info log level.
Click to show internal directories.
Click to hide internal directories.