Categorygithub.com/navono/go-logger
modulepackage
0.0.0-20190816044720-616d07d8284e
Repository: https://github.com/navono/go-logger.git
Documentation: pkg.go.dev

# README

go-logger

Logger interface so that your application code does not depend on the implementation. Make sure to turn the go moudles on if you are inside the $GOPATH. Type the below in your terminal and press enter:

export GO111MODULE=on;

and for use:

go get github.com/navono/go-logger

base code initially from amitrai48.

# Packages

No description provided by the author

# Functions

GetConcreteLogger returns the underlying log instance.
NewContextHook use to make an hook.
NewLogger returns an instance of Logger.

# Constants

DebugLevel logs are typically voluminous, and are usually disabled in production.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
InstanceLogrusLogger will be used to create Logrus instance for the logger.
InstanceZapLogger will be used to create Zap instance for the logger.
WarnLevel logs are more important than Info, but don't need individual human review.

# Structs

Configuration stores the config for the Logger For some loggers there can only be one level across writers, for such the level of Console is picked by default.

# Interfaces

Logger is our contract for the logger.

# Type aliases

Fields Type to pass when we want to call WithFields for structured logging.