Download the PHP package port-adhoc/papertrail without Composer
On this page you can find all versions of the php package port-adhoc/papertrail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download port-adhoc/papertrail
More information about port-adhoc/papertrail
Files in port-adhoc/papertrail
Package papertrail
Short Description Let you log in your papertrai log server
License MIT
Informations about the package papertrail
Warning
This package is abandoned for a more reliable, standardized and tested package. Please refer to khalyomede/syslog as an alternative as this package will now loose its support.
papertrail-php
Let you log in your papertrail log server
[]()
Requirements
- You will need to activate the
php_sockets
extension by uncommenting the line in thephp.ini
file. - You will need to use Composer for this package.
Installation
Execute composer require port-adhoc/papertrail
from the prompt command in your project folder.
Examples
- Example of usage 1 : basic example
- Example of usage 2 : sending multiple message in one script
Example of usage 1 : basic example
Refer to the Severity levels constants list for more severity levels.
back to the example list
Example of usage 2 : sending multiple message in one script
Refer to the Severity levels constants list for more severity levels.
back to the example list
Known issues
- Timezone error
Timezone error
If you ran into a similar error :
Please use date_default_timezone_set()
to globally set your timezone.
Severity levels constants list
Papertrail::SEVERITY_EMERGENCY
Papertrail::SEVERITY_ALERT
Papertrail::SEVERITY_CRITICAL
Papertrail::SEVERITY_ERROR
Papertrail::SEVERITY_WARNING
Papertrail::SEVERITY_NOTICE
Papertrail::SEVERITY_INFORMATIONAL
Papertrail::SEVERITY_DEBUG