Documentation ¶
Index ¶
Constants ¶
View Source
const ( ColorTextLogFormat = "%s | %14s | %16s | %s %s" TextLogFormat = "%s | %5s | %7s | %s %s" TextPropFormat = " | %s=%v" )
View Source
const ( DefaultLevel = Info DefaultName = "<...>" DefaultFormat = FormatTextColor DefaultWriteMode = ModeBlocking DefaultDateFormat = "2006/01/02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func NewProcessor ¶ added in v0.1.0
func NewProcessor(mode WriteMode) *processor
Types ¶
type JsonStruct ¶ added in v0.1.1
type Logger ¶
type Op ¶ added in v0.0.2
type Op func(*globalProps, *localProps)
func WithDateFormat ¶ added in v0.0.2
WithDateFormat (global logger option), set date/time format (default: "2006/01/02 15:04:05")
func WithLevel ¶ added in v0.0.2
WithLevel (local logger option), set logger/module log level (default: Info)
func WithMode ¶ added in v0.0.2
WithMode (global logger option), set blocking or non blocking logger mode (default: log.ModeBlocking)
Click to show internal directories.
Click to hide internal directories.