Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler can send log to syslog
func NewHandler ¶
NewHandler creates a Handler with given syslog.Writer which could be created by syslog.New, the log format as follows:
"[{{app_id}} {{rpc_id}} {{request_id}}] ## {{}}"
func NewHandlerWithFormat ¶
NewHandlerWithFormat is just like NewHandler but with customized format string
Click to show internal directories.
Click to hide internal directories.