log

package
v0.0.0-...-b602ce8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string) slf.Tracer

Debug logs the string with the corresponding level.

func Debugf

func Debugf(msg string, args ...interface{}) slf.Tracer

Debugf formats and logs the string with the corresponding level.

func Error

func Error(msg string) slf.Tracer

Error logs the string with the corresponding level.

func Errorf

func Errorf(msg string, args ...interface{}) slf.Tracer

Errorf formats and logs the string with the corresponding level.

func Fatal

func Fatal(msg string)

Fatal logs the string with the corresponding level and then calls os.Exit(1).

func Fatalf

func Fatalf(msg string, args ...interface{})

Fatalf formats and logs the string with the corresponding level and then calls os.Exit(1).

func Info

func Info(msg string) slf.Tracer

Info logs the string with the corresponding level.

func Infof

func Infof(msg string, args ...interface{}) slf.Tracer

Infof formats and logs the string with the corresponding level.

func Log

func Log(level slf.Level, msg string) slf.Tracer

func Panic

func Panic(msg string)

Panic logs the string with the corresponding level and panics.

func Panicf

func Panicf(msg string, args ...interface{})

Panicf formats and logs the string with the corresponding level and panics.

func SetLog

func SetLog(l slf.Logger)

func Warn

func Warn(msg string) slf.Tracer

Warn logs the string with the corresponding level.

func Warnf

func Warnf(msg string, args ...interface{}) slf.Tracer

Warnf formats and logs the string with the corresponding level.

func WithContext

func WithContext(context string) slf.StructuredLogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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