Documentation ¶
Index ¶
- Constants
- func Alert(args ...interface{})
- func Alertf(format string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLogger(level LogLevel, hostID string, logOpts ...*LogOption)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type LogLevel
- type LogOption
- type Priority
- type SlackOption
Constants ¶
View Source
const TIME_FORMAT = "2006-01-02 15:04:05.000"
Variables ¶
This section is empty.
Functions ¶
func Alert ¶
func Alert(args ...interface{})
func Debug ¶
func Debug(args ...interface{})
func Error ¶
func Error(args ...interface{})
func Info ¶
func Info(args ...interface{})
func Trace ¶
func Trace(args ...interface{})
func Warn ¶
func Warn(args ...interface{})
Types ¶
type LogOption ¶
type LogOption struct {
// contains filtered or unexported fields
}
func WithSlack ¶
func WithSlack(opt *SlackOption) *LogOption
Click to show internal directories.
Click to hide internal directories.