if (!
is_array($config) ||
empty($config)) { /** @see Zend_Log_Exception */
throw new Zend_Log_Exception('Configuration must be an array or instance of Zend_Config'
);
} $log =
new self;
if (array_key_exists('timestampFormat',
$config)) { if (null !=
$config['timestampFormat'
] && '' !=
$config['timestampFormat'
]) { $log->
setTimestampFormat($config['timestampFormat'
]);
} unset($config['timestampFormat'
]);
} if (!
is_array(current($config))) { $log->
addWriter(current($config));
} else { foreach($config as $writer) { $log->
addWriter($writer);
} }