paperlog

command module
v0.0.0-...-d6be260 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 5 Imported by: 0

README

paperlog

Logs to papertrail

  • Uses new connection for each log entry
  • Useful for bash scripts, or apps that for some reason can't use remote_syslog2 or papertrail integration via syslog.

Basic Usage

Export the Papertrail address to log to and your app name. You can also pass this values as arguments to the command instead of exporting.

export PAPERLOG_ADDR=logsN.papertrailapp.com:XXXXX
export PAPERLOG_APPNAME=myapp

Submit a normal log (INFO)

paperlog --message="Hello"

Submit error log (ERROR)

paperlog --error --message="Error here"

Submit a warning

paperlog --warn --message="Warning here"

That's all

The papertrail configs can also be specified as part of the CLI

paperlog --addr="logsN.papertrailapp.com:XXXXX" --appname="myapp" --message="hello"

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