Provides a Craft log route to send logs to Papertrail (papertrailapp.com).
NB This plugin requires Top Shelf Craft's Papertrail plugin to be installed for this plugin to work
Nothing will break if it's not there, you'll just get a passive aggressive log message.
This plugin extends Top Shelf Craft's excelent Papertrail plugin by registering a log route with Craft/Yii, enabling you to send all log data to Papertrail without any additional configuration.
This is useful on load-balanced / PaaS setups where you need to aggregate multiple sources of log data, and don't want to have to much modify existing log calls.
A note on log volumes: Craft can generate some seriously verbose logs, particularly in devMode
. You'll probably wnat to make use of the multi-environment config + the maxSeverity
setting and/or Papertrail's log filtering feature to make things more manageable.
- PHP 5.4+
- Craft 2.5.x
- Papertrail plugin] installed
- A Free Papertrail account
To install Papertrail Route, follow these steps:
- Download & unzip the file and place the
papertrailroute
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/madebykind/craft.PapertrailRoute.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- -OR- install with Composer via
composer require https://github.com/madebykind/craft.PapertrailRoute
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
papertrailroute
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
You may optionally set a maxSeverity
config key in craft/config/papertrailroute.php
to restrict the data logged to Papertrail by severity level. Severity level can be easily mapped to Craft's LogLevel
s - see the default config file for a map. Depending on your requirements, Papertrail's log filtering feature may be a better way to control the log entries retained in Papertrail.
Just install and configure TSC's Papertrail plugin, then install this plugin. Log data should start appearing in Papertrail immediately.
- Initial release
Brought to you by Kind