log

package
v0.0.0-...-53883ab Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnLogger = zerolog.New(os.Stderr).With().Timestamp().Logger()

ConnLogger is the logger to use in application.

View Source
var ErrLogger = zerolog.New(os.Stderr).With().Timestamp().Logger()

ErrLogger is the error logger to use in application.

Functions

func Debug

func Debug(context, msg string)

Debug logs the debug message with tag if it is turned on.

func Error

func Error(context, err string)

Error logs the error messages.

func Fatal

func Fatal(context, msg string, err error)

Fatal logs the fatal error messages.

func Info

func Info(context, action string)

Info logs the conn or sub/unsub action with a tag.

func ParseLevel

func ParseLevel(level string, defaultLevel zerolog.Level) zerolog.Level

ParseLevel parses a string which represents a log level and returns a zerolog.Level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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