Download the PHP package apix/log without Composer

On this page you can find all versions of the php package apix/log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of log with dependencies

Informations about the package log

APIx Log, very thin PSR-3 logger Build Status

Latest Stable Version Total Downloads Build Status Code Quality Code Coverage License

Minimalist and fast PSR-3 compliant logger.

Feel free to comment, send pull requests and patches...

:new: Log dispatch can be postponed/accumulated using setDeferred().

Basic usage ~ standalone

This simple logger is now set to intercept critical, alert and emergency logs.

To log an event, use:

Advanced usage ~ multi-logs dispatcher

Lets create an additional logger with purpose of catching log entries that have a severity level of warning or more -- see the log levels for the order.

setCascading() was set to false (default is true) so the entries caught here won't continue downstream past that particular log bucket. setDeferred() was set to true (default is false) so processing happen on __destruct (end of script generally) rather than on the fly.

Now, lets create a main logger object and inject the two previous loggers.

Lets create an additional logger -- just for development/debug purposes.

Finally, lets push some log entries:

Log levels

The eight RFC 5424 levels of logs are supported, in cascading order:

Severity Description
Emergency System level failure (not application level)
Alert Failure that requires immediate attention
Critical Serious failure at the application level
Error Runtime errors, used to log unhandled exceptions
Warning May indicate that an error will occur if action is not taken
Notice Events that are unusual but not error conditions
Info Normal operational messages (no action required)
Debug Verbose info useful to developers for debugging purposes (default)


Install the current major version using Composer with (recommended)

Or install the latest stable version with


APIx Log is licensed under the New BSD license -- see the LICENSE.txt for the full license details.

Requires php Version >=5.3
psr/log Version ~1.0

The package apix/log contains the following files

Loading the files please wait ....

Continue with your Google account.