package
0.3.0
Repository: https://github.com/fredgan/go-utils.git
Documentation: pkg.go.dev

# Functions

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
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
like the python logging.getLogger return an Gloabl-logger and save in the memory.
No description provided by the author
No description provided by the author
No description provided by the author
new a logger with specified handler and flag.
new a default logger with specified handler and flag: Ltime|Lfile|Llevel.
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
log level, from low to high, more high means more serious.
file.go:123.
[Trace|Debug|Info...].
time format "2006/01/02 15:04:05".
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

# Variables

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

# Structs

FileHandler writes log to a file.
No description provided by the author
NullHandler does nothing, it discards anything.
RotatingFileHandler writes log a file, if file size exceeds maxBytes, it will backup current file and open a new one.
SocketHandler writes log to a connectionl.Network protocol is simple: log length + log | log length + log.
StreamHandler writes logs to a specified io Writer, maybe stdout, stderr, etc...
No description provided by the author
TimeRotatingFileHandler writes log to a file, it will backup current and open a new one, with a period time you sepecified.

# Interfaces

Handler writes logs to somewhere.