Categorygithub.com/KyberNetwork/logger
modulepackage
0.2.1
Repository: https://github.com/kybernetwork/logger.git
Documentation: pkg.go.dev

# README

logger

Flexible logger interface that supports both zap and logrus

# Functions

No description provided by the author
No description provided by the author
DefaultLogger creates default logger, which uses zap sugarLogger and outputs to console.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitLogger returns an instance of logger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

LoggerBackendLogrus logging using logrus backend.
LoggerBackendZap logging using Uber's zap backend.

# 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.
LoggerBackend represents the int enum for backend of logger.