Documentation ¶
Index ¶
- Constants
- func ChaosLogger()
- func Debug(msg ...interface{})
- func Debug2(ctx iris.Context, msg ...interface{})
- func Debugf(format string, msg ...interface{})
- func Debugf2(ctx iris.Context, format string, msg ...interface{})
- func Error(msg ...interface{})
- func Error2(ctx iris.Context, msg ...interface{})
- func Errorf(format string, msg ...interface{})
- func Errorf2(ctx iris.Context, format string, msg ...interface{})
- func Fatal(msg ...interface{})
- func Fatal2(ctx iris.Context, msg ...interface{})
- func Fatalf(format string, msg ...interface{})
- func Fatalf2(ctx iris.Context, format string, msg ...interface{})
- func Info(msg ...interface{})
- func Info2(ctx iris.Context, msg ...interface{})
- func Infof(format string, msg ...interface{})
- func Infof2(ctx iris.Context, format string, msg ...interface{})
- func Infof3(format string, msg ...interface{})
- func NewIrisLogger(config *logger.Config) iris.Handler
- func SetTraceMiddleware(ctx iris.Context)
- func Stack(msg ...interface{})
- func Stackf(format string, msg ...interface{})
- func Warn(msg ...interface{})
- func Warn2(ctx iris.Context, msg ...interface{})
- func Warnf(format string, msg ...interface{})
- func Warnf2(ctx iris.Context, format string, msg ...interface{})
- type Hook
- type Logger
Constants ¶
View Source
const ( B = 1 << (10 * iota) KB MB GB TB PB )
View Source
const ( OUT_STDOUT = 0x1f OUT_FILE = 0x8b )
View Source
const LoggerMessageKey = "message"
View Source
const ResponseDataKey = "data"
View Source
const TraceContextKey = "trace"
View Source
const UserAgentKey = "User-Agent"
Variables ¶
This section is empty.
Functions ¶
func ChaosLogger ¶
func ChaosLogger()
func SetTraceMiddleware ¶
Types ¶
type Logger ¶
type Logger struct { Path string FileName string FileMaxSize int FileBufSize int Bucket chan *bytebufferpool.ByteBuffer Persist int ContextTraceKey string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.