Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coderofsalvation/syslog-flexible

Minimal PHP class to easily log messages to local syslog and/or papertrail and/or a remote syslog server
https://github.com/coderofsalvation/syslog-flexible

Last synced: 12 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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