log

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug logs a message with DEBUG level.

func DebugCtx

func DebugCtx(msg string, ctx Context)

DebugCtx logs a message with DEBUG level.

func Error

func Error(msg string)

Error logs a message with ERROR level.

func ErrorCtx

func ErrorCtx(msg string, ctx Context)

ErrorCtx logs a message with ERROR level.

func Fatal

func Fatal(msg string)

Fatal logs a message with FATAL level.

func FatalCtx

func FatalCtx(msg string, ctx Context)

FatalCtx logs a message with FATAL level.

func Info

func Info(msg string)

Info logs a message with INFO level.

func InfoCtx

func InfoCtx(msg string, ctx Context)

InfoCtx logs a message with INFO level.

func SetLevel

func SetLevel(logLevel string)

SetLevel sets the logging level.

func Sync

func Sync()

Sync flushes the log cache.

func Warn

func Warn(msg string)

Warn logs a message with WARN level.

func WarnCtx

func WarnCtx(msg string, ctx Context)

WarnCtx logs a message with WARN level.

Types

type Context

type Context map[string]interface{}

Context is the type for log contexts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL