Documentation ¶
Index ¶
- func FileHandlerWithRotation(opts FileOptions, format log.Format) log.Handler
- func NewStdHandler(fmtr log.Format) log.Handler
- func OverrideRootLog(enabled bool, levelStr string, fileOpts FileOptions, terminal bool) error
- func OverrideRootLogWithConfig(config *params.NodeConfig, colors bool) error
- func OverrideWithStdLogger(config *params.NodeConfig) error
- type FileOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileHandlerWithRotation ¶
func FileHandlerWithRotation(opts FileOptions, format log.Format) log.Handler
FileHandlerWithRotation instantiates log.Handler with a configured rotation
func NewStdHandler ¶
NewStdHandler returns handler that uses logger from golang std lib.
func OverrideRootLog ¶
func OverrideRootLog(enabled bool, levelStr string, fileOpts FileOptions, terminal bool) error
OverrideRootLog overrides root logger with file handler, if defined, and log level (defaults to INFO).
func OverrideRootLogWithConfig ¶
func OverrideRootLogWithConfig(config *params.NodeConfig, colors bool) error
OverrideRootLogWithConfig derives all configuration from params.NodeConfig and configures logger using it.
func OverrideWithStdLogger ¶
func OverrideWithStdLogger(config *params.NodeConfig) error
OverrideWithStdLogger overwrites ethereum's root logger with a logger from golang std lib.
Types ¶
Click to show internal directories.
Click to hide internal directories.