package
0.0.1
Repository: https://github.com/ifantsai/go-lib.git
Documentation: pkg.go.dev

# Functions

NewJSONLogger return a json-encoder zap logger,.
WithDebugLevel only greater than 'level' will output.
WithEnableConsole enable write log to os.Stdout or os.Stderr.
WithErrorLevel only greater than 'level' will output.
WithField add some field(s) to log.
WithFilePath write log to some file.
WithFileRotationP write log to some file with rotation.
WithInfoLevel only greater than 'level' will output.
WithIOWriter write log to writer.
WithTimeLayout custom time format.
WithWarnLevel only greater than 'level' will output.

# Constants

DefaultLevel the default log level.
DefaultTimeLayout the default time layout.

# Type aliases

Option custom setup config.