Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2022-01-30 (13 days ago) | | Not yet rated by the users | | Total: 57 | | All time: 10,087 This week: 196 |
|
Description | | Author |
This package can be used to log activities compliant with PSR 3.
It can create a logger object that can take activity messages and format them to store in log files.
Another class provides an interface compliant with PSR 3 specification so it can push log messages to a queue and them output the queued log messages all at once to the log file handled by the logger class. | |
|
|
Innovation award
Nominee: 3x
Winner: 1x |
|
Details
Dframe/ActivityLog
Documentation available at https://dframeframework.com
Language
Polish | English
Installation Composer
$ composer require dframe/activitylog
PSR-3 Adapter
use Dframe\ActivityLog\Activity;
use Dframe\ActivityLog\Demo\Drivers\PSR3FileLog;
use Dframe\ActivityLog\Helper\Psr3Adapter;
use Psr\Log\LogLevel;
require_once __DIR__ . '/../../vendor/autoload.php';
$log = new Activity(new PSR3FileLog());
$logger = new Psr3Adapter($log, 'System', \Dframe\ActivityLog\Entity\PSR3::class);
$logger->log(LogLevel::ERROR, 'This is {error}', ['error' => 'error #500']);
Standard Usage
use Dframe\ActivityLog\Activity;
use Dframe\ActivityLog\Demo\Drivers\FileLog;
require_once __DIR__ . '/../../vendor/autoload.php';
$log = (new Activity(new FileLog()));
$log->log('Hello Word!')->entity(\Dframe\ActivityLog\Demo\Entity\Action::class)->push();
Display Logs
$log->logs();
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.