Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package log is a global internal logger
Index ¶
- func Debug(v ...interface{})
 - func Debugf(format string, v ...interface{})
 - func Error(v ...interface{})
 - func Errorf(format string, v ...interface{})
 - func Fatal(v ...interface{})
 - func Fatalf(format string, v ...interface{})
 - func Info(v ...interface{})
 - func Infof(format string, v ...interface{})
 - func Log(l Level, v ...interface{})
 - func Logf(l Level, format string, v ...interface{})
 - func Name(name string)
 - func SetLevel(l Level)
 - func SetLogger(l Logger)
 - func SetPrefix(p string)
 - func Trace(v ...interface{})
 - func Tracef(format string, v ...interface{})
 - func Warn(v ...interface{})
 - func Warnf(format string, v ...interface{})
 - func WithLevel(l Level, v ...interface{})
 - func WithLevelf(l Level, format string, v ...interface{})
 - type Level
 - type LogLogger
 - type Logger
 - type LoggerStruct
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf logs with Logf and then exits with os.Exit(1)
func WithLevelf ¶
WithLevel logs with the level specified
Types ¶
type Logger ¶
type Logger interface {
	// Log inserts a log entry.  Arguments may be handled in the manner
	// of fmt.Print, but the underlying logger may also decide to handle
	// them differently.
	Log(level int, v ...interface{})
	// Logf insets a log entry.  Arguments are handled in the manner of
	// fmt.Printf.
	Logf(level int, format string, v ...interface{})
}
    Logger is a generic logging interface
type LoggerStruct ¶
type LoggerStruct struct {
	// contains filtered or unexported fields
}
     Click to show internal directories. 
   Click to hide internal directories.