$ composer require coderofsalvation/syslog
And then
<?
use coderofsalvation\Syslog;
SysLog::send( "this is a local test " );
SysLog::$hostname = "logs.papertrailapp.com";
SysLog::$port = 26987;
SysLog::send( "this is a local + papertrail test " );
SysLog::$local = false;
SysLog::send( "this is a papertrail test only" );
?>
BSD