Categorygithub.com/jianbo-zh/go-log
modulepackage
0.2.0
Repository: https://github.com/jianbo-zh/go-log.git
Documentation: pkg.go.dev

# README

base log module

# Functions

AllLevels get the log levels of all subsystem.
FormatRFC3339 returns the given time in UTC with RFC3999Nano format.
GetSubsystems returns a slice containing the names of the current loggers.
LevelFromString parses a string-based level and returns the corresponding LogLevel.
Logger retrieves an event logger by name.
NewPipeReader creates a new in-memory reader that reads from all loggers The caller must call Close on the returned reader when done.
PipeFormat sets the output format of the pipe reader.
PipeLevel sets the log level of logs sent to the pipe reader.
SetLogLevel changes the log level of a specific subsystem name=="*" changes all subsystems.
SetLogLevelRegex sets all loggers to level `l` that match expression `e`.
SetPrimaryCore changes the primary logging core.
setupLogging will initialize the logger backend and set the flags.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNoSuchLogger is returned when the util pkg is asked for a non existant logger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
A PipeReader is a reader that reads from the logger.
ZapEventLogger implements the EventLogger and wraps a go-logging Logger.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
LogLevel represents a log severity level.