gologger

command module
v0.0.0-...-3d2e87e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2018 License: MIT Imports: 8 Imported by: 0

README

gologger

Sends messages to the local syslog daemon

Meant as a replacement for the default logger found on most linux systems (docs). I built this to run on older installations, where the default logger has a hard limit for the size of each message (1024 bytes).

Usage

As a pipe:

cat /some/file | gologger -t myfile

As arguments:

gologger -t myprog my message
gologger -t myprog "my   message    with weird          spaces"

In Apache (my use case):

ErrorLog "|/usr/bin/gologger -p local6.debug"
CustomLog "|/usr/bin/gologger -p local0.debug" combinedio env=!dontlog

Compatibility

For now, only supports these flags:

  • -p, --priority
  • -t, --tag

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL