logger

package
v0.0.0-...-93e8ec0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL