Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable()
Adds the Journal hook if journal is enabled Sets log output to ioutil.Discard so stdout isn't captured.
Types ¶
type JournalHook ¶
type JournalHook struct{}
func (*JournalHook) Fire ¶
func (hook *JournalHook) Fire(entry *logrus.Entry) error
func (*JournalHook) Levels ¶
func (hook *JournalHook) Levels() []logrus.Level
`Levels()` returns a slice of `Levels` the hook is fired for.
Click to show internal directories.
Click to hide internal directories.