Documentation ¶
Index ¶
Constants ¶
View Source
const ( LowPriorityLogFileName = "info.log" HighPriorityLogFileName = "error.log" DefaultLogPathPerm = 0o766 DefaultLogTick = time.Second DefaultLogLogFirst = 10 DefaultLogLogThereafter = 5 )
Variables ¶
This section is empty.
Functions ¶
func S ¶
func S() *zap.SugaredLogger
func SetLogger ¶
func SetLogger(m Mode, prodOpts ...ProdLoggerOpts)
SetLogger makes zap-based logger Use filepath.Join to make logpath
Types ¶
type LogSamplerOpts ¶
type ProdLoggerOpts ¶ added in v0.1.1
type ProdLoggerOpts struct { Sample *LogSamplerOpts Logpath string Pathperm os.FileMode }
Click to show internal directories.
Click to hide internal directories.