SfTaskLogPlugin is a project mainly written in PHP, based on the BSD-3-Clause license.
The sfTaskLogPlugin package provides an easy way to log into file or database the log of your tasks
Download and install the plugin
./symfony plugin:install sfTaskLogPlugin
Clear the cache
./symfony cc
Check if the plugin is active in your configuration project (/config/ProjectConfiguration.class.php file)
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->enablePlugins('sfTaskLogPlugin');
}
}
Your task class must extends to sfTaskLog, sfTaskLogPropel or sfTaskLogDoctrine
Three adapters are available :
By default, the adapter is sfTaskLogFile, you can change it with app.yml :
all:
sfTaskLog:
class: sfTaskLogFile|sfTaskLogDb|sfTaskLogFileAndDb|[your own adapter]
If you want create your own adapter, it must be implement sfTaskLogAdapter