logging

package
v0.0.0-...-7bf2daa Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogPanic

func LogPanic(log Logger)

LogPanic can be used deferred in the main function to capture panic logs

Types

type Logger

type Logger = zerolog.Logger

Logger ...

func New

func New(config *LoggerConfig) (Logger, error)

New returns a new logger

type LoggerConfig

type LoggerConfig struct {
	Level string
}

LoggerConfig represents the logger config

Jump to

Keyboard shortcuts

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