For file based configuration see {@link LoggerPropertyConfigurator}. *

For XML based configuration see {@link LoggerDOMConfigurator}. * * @author Marco Vassura * @version $Revision: 635069 $ * @package log4php */ class LoggerBasicConfigurator implements LoggerConfigurator { /** * Add a {@link LoggerAppenderConsole} that uses * the {@link LoggerLayoutTTCC} to the root category. * * @param string $url not used here */ public static function configure($url = null) { $root = LoggerManager::getRootLogger(); $appender = new LoggerAppenderConsole('A1'); $appender->setLayout( new LoggerLayoutTTCC() ); $root->addAppender($appender); } /** * Reset the default hierarchy to its default. * It is equivalent to * * LoggerManager::resetConfiguration(); * * * @see LoggerHierarchy::resetConfiguration() * @static */ public static function resetConfiguration() { LoggerManager::resetConfiguration(); } }