coderofsalvation/syslog-flexible

Minimal class to easily log messages to local syslog and/or papertrail and/or a remote syslog server

dev-master 2020-05-28 19:26 UTC

This package is not auto-updated.

Last update: 2024-04-17 07:28:36 UTC


README

Minimal class to easily log messages to local syslog and/or papertrail and/or a remote syslog server.

Usage

$ 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" );
?> 

License

BSD