Releases: carlosafonso/logga
Releases · carlosafonso/logga
v3.0.0
v2.2.0
v2.1.0
This version brings some changes to the available log levels in order to adhere to the PSR-3 standard by PHP-FIG (http://www.php-fig.org/psr/psr-3/):
- Added new levels
NOTICE
,CRITICAL
,ALERT
andEMERGENCY
(and their appropriate functions). - Deprecated level
FATAL
.Logga::fatal()
is still available but will log messages using theEMERGENCY
level and will also trigger aE_USER_DEPRECATED
error.
v2.0.0
This version now allows installation via Composer (carlosafonso/logga
) and has been refactored to follow the PSR-4 standard for autoloading. In addition, it has the following features and improvements:
- Added a new stream (
StandardOutputStream
) which outputs all log traces into the standard output. When creating a new instance ofLogga
this stream will be used alongside aFileStream
by default, so all logging will be saved into a file and sent to the screen (or wherever the standard output is being redirected to). - Removed unused code from the initial version.
DefaultFormatter
now transforms all objects an arrays into their JSON representations.
v1.0.0
This version lays the foundations for supporting multiple log streams and formatters. Changes in this version also include:
- Added a standard stream (
FileStream
) which logs to a single file. This stream has the default behaviour of version 0.1.0 but can optionally remove the date from the file name. - Added a standard formatter (
DefaultFormatter
) which is currently hardcoded and cannot be replaced. This formatter formats log messages so that they look exactly the same as they did in version 0.1.0. - Added a minimum log level setting which is independent for each stream, so that traces with a level below this minimum will not be logged.
- Added the ability to enable and disable a log stream at any time. Disabled streams don't log anything, disregarding its minimum level.
Initial release
This is the first release of Logga. It allows to write log traces into a file using 5 different categories (DEBUG, INFO, WARNING, ERROR, FATAL).