paperlog

command module
v0.0.0-...-56b91f1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 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

Alternatively, create a .env file (loaded automatically) or use --env-file for custom files: paperlog --env-file custom.env --message="hello"

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"

Use custom environment file:

paperlog --env-file custom.env --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