Download the PHP package mirko-pagliai/cakephp-entity-file-log without Composer
On this page you can find all versions of the php package mirko-pagliai/cakephp-entity-file-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mirko-pagliai/cakephp-entity-file-log
More information about mirko-pagliai/cakephp-entity-file-log
Files in mirko-pagliai/cakephp-entity-file-log
Package cakephp-entity-file-log
Short Description A log adapter that writes log (as entities) files
License MIT
Homepage https://github.com/mirko-pagliai/cakephp-entity-file-log
Informations about the package cakephp-entity-file-log
cakephp-entity-file-log
cakephp-entity-file-log is a CakePHP plugin that provides a log adapter that writes log (as entities) files.
Did you like this plugin? Its development requires a lot of time for me. Please consider the possibility of making a donation: even a coffee is enough! Thank you.
Installation
You can install the plugin via composer:
Then you have to load the plugin. For more information on how to load the plugin, please refer to the Cookbook.
Simply, you can execute the shell command to enable the plugin:
This would update your application's bootstrap method.
Installation on older CakePHP and PHP versions
Recent packages and the master branch require at least CakePHP 4.0 and PHP 7.2. Instead, the cakephp3 branch requires at least PHP 5.6.
In this case, you can install the package as well:
Note that the cakephp3
branch will no longer be updated as of April 29, 2021,
except for security patches, and it matches the
1.1.3 version.
How to use
Simply, you have to use the EntityFileLog\Log\Engine\EntityFileLog
class as a log adapter.
For more information on how to configure logs, please refer to the Cookbook.
Example:
Versioning
For transparency and insight into our release cycle and to maintain backward compatibility, cakephp-entity-file-log will be maintained under the Semantic Versioning guidelines.