From 0a2a97ea82b3ca56a27579a4f31f666ed638bfcf Mon Sep 17 00:00:00 2001 From: Alex Payne Date: Sat, 13 Sep 2014 11:55:21 -0700 Subject: [PATCH] Improved documentation for Papertrail hook. --- hooks/papertrail/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hooks/papertrail/README.md b/hooks/papertrail/README.md index 7ff0564..ae61e92 100644 --- a/hooks/papertrail/README.md +++ b/hooks/papertrail/README.md @@ -1,8 +1,14 @@ -# Papertrail Hook for Logrus +# Papertrail Hook for Logrus :walrus: + +[Papertrail](https://papertrailapp.com) provides hosted log management. Once stored in Papertrail, you can [group](http://help.papertrailapp.com/kb/how-it-works/groups/) your logs on various dimensions, [search](http://help.papertrailapp.com/kb/how-it-works/search-syntax) them, and trigger [alerts](http://help.papertrailapp.com/kb/how-it-works/alerts). + +In most deployments, you'll want to send logs to Papertrail via their [remote_syslog](http://help.papertrailapp.com/kb/configuration/configuring-centralized-logging-from-text-log-files-in-unix/) daemon, which requires no application-specific configuration. This hook is intended for relatively low-volume logging, likely in managed cloud hosting deployments where installing `remote_syslog` is not possible. ## Usage -You can find your Papertrail UDP port on your [Papertrail account page](https://papertrailapp.com/account/destinations). +You can find your Papertrail UDP port on your [Papertrail account page](https://papertrailapp.com/account/destinations). Substitute it below for `YOUR_PAPERTRAIL_UDP_PORT`. + +For `YOUR_APP_NAME`, substitute a short string that will readily identify your application or service in the logs. ```go import (