package
0.6.2
Repository: https://github.com/phamtai97/go-utils.git
Documentation: pkg.go.dev

# Functions

Debug logs a message at Debug level.
Error logs a message at Error level.
Fatal logs a message at Fatal level.
Info logs a message at Info level.
Init creates the global logger that is used everywhere in project with your config.
InitProduction creates the global logger that is used everywhere in project with production config logger.
NewDefaultConfig returns the default config with INFO level and log to console.
NewProductionConfig returns the production config with INFO level.
Sync flushs any buffered log entries.
Warn logs a message at Warn level.

# Constants

DEBUG logs.
DefaultLogFileSizeInMB Default log file size with Megabyte unit.
ERROR logs are high-priority.
FATAL log message and then calls os.Exit(1).
INFO level is the default logging.
WARN level logs are more important than Info.

# Structs

Config allows users to configure log level and log file.
FileLogConfig allows users to configure detail log file such as file path, max size of file, max file to backup,....

# Type aliases

Level map between string level with zapcore level.