Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(logFormat, logLevel, encoderType string, outputPaths []string, errorOutputPaths []string) (*zap.Logger, error)
NewLogger returns zap.Logger with the given logFormat ("json", "console"), logLevel ("debug", "info", "warn", "error"), encoderType ("dev", "prod"), outputPaths (e.g. ["stdout"], ["stdout", "./tmp/logs/rpc_traffic.txt"]), errorOutputPaths (e.g. ["stderr"], ["stderr", "./tmp/logs/rpc_traffic_errors.txt"]).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.