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: about 1 year ago
JSON representation
Minimal PHP class to easily log messages to local syslog and/or papertrail and/or a remote syslog server
- Host: GitHub
- URL: https://github.com/coderofsalvation/syslog-flexible
- Owner: coderofsalvation
- License: bsd-3-clause
- Created: 2015-08-21T16:36:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T19:26:43.000Z (about 6 years ago)
- Last Synced: 2025-04-12T20:09:54.626Z (about 1 year ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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