Documentation ¶
Index ¶
- func Emit(eventType, eventMessage string)
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Flags() int
- func Listen(eventchan chan LoggerEvent)
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Prefix() string
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetFlags(flag int)
- func SetPrefix(prefix string)
- func Unlisten(eventchan chan LoggerEvent)
- type Logger
- type LoggerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
func Listen(eventchan chan LoggerEvent)
func Unlisten ¶
func Unlisten(eventchan chan LoggerEvent)
Types ¶
type Logger ¶
type Logger struct { golog.Logger //The event type that will show up when using the log standard calls (default to "log") Type string // contains filtered or unexported fields }
This is a special logger. It has the same methods as the standard golang Logger class, but allows you to register for updates. This allows us to expose the logging events easily via an api call.
func (*Logger) Listen ¶
func (this *Logger) Listen(eventchan chan LoggerEvent)
func (*Logger) Unlisten ¶
func (this *Logger) Unlisten(eventchan chan LoggerEvent)
type LoggerEvent ¶
Click to show internal directories.
Click to hide internal directories.