Categorygithub.com/ik5/logger
modulepackage
0.0.2
Repository: https://github.com/ik5/logger.git
Documentation: pkg.go.dev

# README

Logger interface so that your application code does not depend on the implementation. To use it in your codebase use go get github.com/ik5/logger

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;

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewLogger returns an instance of Logger.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Debug has verbose message.
Error is for logging errors.
Fatal is for logging fatal messages.
Info is default log level.
InstanceZapLogger will be used to create Zap instance for the logger.
Warn is for logging messages about possible issues.

# 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.