Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerHookSimple ¶
func NewLoggerHookSimple(host, app string)
Types ¶
type JSONFormatter ¶
type LoggerHook ¶
type LoggerHook struct { HostPort string Conn *websocket.Conn // contains filtered or unexported fields }
func NewLoggerHook ¶
func NewLoggerHook(hostport, host, app string) (*LoggerHook, error)
host is my host: what machine I am running on hostport is the address of the logging server host
func (*LoggerHook) Close ¶
func (hook *LoggerHook) Close()
func (*LoggerHook) Connect ¶
func (lh *LoggerHook) Connect()
func (*LoggerHook) Fire ¶
func (hook *LoggerHook) Fire(entry *log.Entry) error
Fire is called when a log event is fired.
func (*LoggerHook) Levels ¶
func (hook *LoggerHook) Levels() []log.Level
Levels returns the available logging levels.
Click to show internal directories.
Click to hide internal directories.