Refactor of logging code to suport multiple log engines

This commit is contained in:
2011-04-24 10:37:15 +01:00
parent ab127e93e8
commit e1cb31e5ca
11 changed files with 450 additions and 139 deletions

View File

@@ -13,7 +13,7 @@ class SihnonFramework_Log_PluginFactory extends Sihnon_PluginFactory {
}
public static function create($plugin, $options) {
public static function create(SihnonFramework_Config $config, $plugin, $instance) {
self::ensureScanned();
if (! self::isValidPlugin($plugin)) {
@@ -22,7 +22,7 @@ class SihnonFramework_Log_PluginFactory extends Sihnon_PluginFactory {
$classname = self::classname($plugin);
return call_user_func(array($classname, 'create'), $options);
return call_user_func(array($classname, 'create'), $config, $instance);
}
}