Skip to content

Action_log

Agbarrachina edited this page Mar 20, 2014 · 2 revisions

How it works

Action_log register every action launched in Ximdex. The message includes the action class name, the called method and the user who launched it.

For every action we must register the status of the action, calling the logSuccessAction method if it was successfull or logUnsuccessAction if doesn't.

$this->logSuccessAction();
$this->logUnsuccessAction("The failure optional message");

The message in logs/actions.log will be like:

2: [2014-03-19 16:12:06] Init Action_browser3->index by 301 - INFO (in /var/www/git/ximdex/inc/mvc/ActionAbstract.class.php:182)
2: [2014-03-19 16:12:07] OK Action_browser3->index by 301  - INFO (in /var/www/git/ximdex/inc/mvc/ActionAbstract.class.php:191)
2: [2014-03-20 9:07:37] Init Action_login->check  - INFO (in /var/www/git/ximdex/inc/mvc/ActionAbstract.class.php:182)
4: [2014-03-20 9:07:38] FAIL Action_login->check   - ERROR (in /var/www/git/ximdex/inc/mvc/ActionAbstract.class.php:193)

Topics

  • Home
  • How do I start?
  • Easy Recipes
Clone this wiki locally