Skip to content

wercker/journalhook

Repository files navigation

journalhook

systemd-journald hook for logrus

wercker status

Use

import "github.com/wercker/journalhook"

journalhook.Enable()

Note that this will discard all journal output. Generally when logging to the journal, your application will be managed by systemd, which will automatically capture command output and send it to the journal. This way we preempt that potential log message duplication.

If you'd like not to do that, it's as easy as:

import (
    "github.com/wercker/journalhook"
    "github.com/sirupsen/logrus"
)

logrus.AddHook(&journalhook.JournalHook{})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages