Documentation ¶
Index ¶
- Constants
- func Critical(params ...interface{})
- func CtxCritical(ctx context.Context, format string, params ...interface{})
- func CtxDebug(ctx context.Context, format string, params ...interface{})
- func CtxError(ctx context.Context, format string, params ...interface{})
- func CtxInfo(ctx context.Context, format string, params ...interface{})
- func CtxTrace(ctx context.Context, format string, params ...interface{})
- func CtxWarn(ctx context.Context, format string, params ...interface{})
- func CtxWithLogId(ctx context.Context, logId string) context.Context
- func Debug(params ...interface{})
- func Error(params ...interface{})
- func Flush()
- func GenLogId() string
- func GetLogId(ctx context.Context) string
- func Info(params ...interface{})
- func InitFromConfigAsFile(filePath string)
- func InitFromConfigAsString(conf string)
- func Trace(params ...interface{})
- func Warn(params ...interface{})
- type ContextKey
Constants ¶
View Source
const (
DefaultConfig = `` /* 1154-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func CtxCritical ¶
func InitFromConfigAsFile ¶
func InitFromConfigAsFile(filePath string)
func InitFromConfigAsString ¶
func InitFromConfigAsString(conf string)
Types ¶
type ContextKey ¶ added in v1.0.1
type ContextKey string
const LogIdContextKey ContextKey = "X_LOG_ID"
Click to show internal directories.
Click to hide internal directories.