Download the PHP package aseemann/php-livelog without Composer
On this page you can find all versions of the php package aseemann/php-livelog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aseemann/php-livelog
More information about aseemann/php-livelog
Files in aseemann/php-livelog
Package php-livelog
Short Description Livelogger for your php projects. See the logs you send to the writer your request.
License AGPL-3.0-or-later
Informations about the package php-livelog
PHP Livelog
What it does
This small tool should simplify the developer's life by offering the possibility to follow the logs of a web application live.
You don't have to tail
and grep
the logfiles direct on the machine or to download it.
The logs will only be written for the current session, so you see only the log of your own requests.
Install
The suggested install-method is to use composer composer req aseemann/php-livelog
.
After installing the package you have to set a symlink to the web folder in your public
directory e.g. ln -s vendor/aseemann/php-livelog/web docroot/livelog
Now you can open the log dashboard in your webbrowser under the path of the symlinks.
e.g domian.tld/livelog
For easier setup you can add this to your composer.json file in the scripts section.
`
How to use
To send logs to the log page integrate the logger into your scripts as described below.
``
Afterward the logs should appear on the logging page grouped by the request.
Connectors
For the easy integration in some projects there are also connectors available. So you only have to add some configuration in your application and all logs of your app will appear on the logging page.
TYPO3
Add the following lines to your AdditionalConfiguration.php
``
The lines you take from here may vary depending on you typo3 installation.
You have also the possibility to exclude some loggers. So you can keep the focus on what you
want to see. To exclude the logger pass the option ignorePattern
to the log-writer.
Example: (Ignore all logger wich contains Frontend in their names ) ``
Todos
- Add formatter for context
- escape tags in context
- Add more connectors.
All versions of php-livelog with dependencies
ext-json Version *
psr-php7/log Version *
twbs/bootstrap Version ~4.5
ramsey/uuid Version 4.1.1