logger

package
v0.0.0-...-535ab37 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, fields ...interface{})

Debug logs a debug message with the given fields

func Error

func Error(message string, fields ...interface{})

Error logs a debug message with the given fields

func Fatal

func Fatal(message string, fields ...interface{})

Fatal logs a message than calls os.Exit(1)

func GetLogger

func GetLogger() *zap.Logger

Get ordinary logger

func Info

func Info(message string, fields ...interface{})

Info logs a debug message with the given fields

func Init

func Init(logLevel, filePath string)

Init initializes a thread-safe singleton logger This would be called from a main method when the application starts up This function would ideally, take zap configuration, but is left out in favor of simplicity using the example logger.

func Warn

func Warn(message string, fields ...interface{})

Warn logs a debug message with the given fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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