Download the PHP package cbschuld/logentries without Composer
On this page you can find all versions of the php package cbschuld/logentries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package logentries
LogEntries
A LogEntries specific logging class by Chris Schuld for logging information to LogEntries
About
LogEntries is an easy-to-use PHP PSR-3 compliant logging class used to log information to the LogEntries SaaS application.
Installation
Composer
From the Command Line:
In your composer.json
:
Basic Usage
Advanced Usage
You can send all of the logging functions either a string (PSR-3), encoded JSON (PSR-3) or an array which will be encoded into JSON (not PSR-3 but available)
You can also create a non-static instantiation for dependency injection or multiple log token usage
Middleware (Writer)
Using a LogEntriesWriter you can append log writing middleware into the log. The middleware is called before the log is written to LogEntries. It allows for sensing for JSON or text. This allows you to append data from your architecture into your logs.
Here is a sample usage:
PSR-3 Compliant
LogEntries is PHP PSR-3
compliant. This means it implements the Psr\Log\LoggerInterface
.
See Here for the interface definition.
License
The MIT License
Copyright (c) 2015 Chris Schuld [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.