scp / syslog-flexible

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SysLog-Flexible

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

About

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 100.0%