-
Notifications
You must be signed in to change notification settings - Fork 4
DB Logger
Duy Nguyen edited this page May 28, 2015
·
1 revision
Phalcon\Logger is a component whose purpose is to provide logging services for applications. It offers logging to different backends using different adapters. It also offers transaction logging, configuration options, different formats and filters. You can use the Phalcon\Logger for every logging need your application has, from debugging processes to tracing application flow.
In this framework, i used extra Phalcon Logger Incubator library for store log information in database. More at Phalcon Incubator Library.
You need simply call to store log information, example i used in CodegeneratorController.php file when user generate CRUD structure or LoginController.php when user login to admin area.
$this->logger->name = 'LOGIN';
$this->logger->info('Information u want to store');
Go to http://yoursite/admin/logs to view log