package
0.0.0-20190118033331-2a53b66835d6
Repository: https://github.com/arcplus/go-lib.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
No description provided by the author
Logger return copy of default logger.
NewAsyncWriter creates a writer wrapping w with a many-to-one diode in order to never block log producers and drop events if the writer can't keep up with the flow of data.
RedisWriter redis writer.
No description provided by the author
SetAttachment add global kv to logger.
SetCallDepth set call depth for show line number.
SetGlobalLevel set global log level.
SetOutput set multi log writer, careful, all SetXXX method are non-thread safe.
No description provided by the author
TakeStacktrace is helper func to take snap short of stack trace.
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

Level.
Level.
Level.
Level.
Level.
Level.

# Variables

No description provided by the author

# Structs

ConsoleConfig is conf for redis writer.
Log struct.
RedisConfig is conf for redis writer.
Writer is a io.Writer wrapper that uses a diode to make Write lock-free, non-blocking and thread safe.

# Type aliases

No description provided by the author
BasicSampler is a sampler that will send every Nth events, regardless of there level.
No description provided by the author
No description provided by the author
No description provided by the author
Level indicate log level.
No description provided by the author