[pLog-svn] r2208 - plog/trunk/class/logger
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun Jun 12 00:08:57 GMT 2005
Author: ork
Date: 2005-06-12 00:08:57 +0000 (Sun, 12 Jun 2005)
New Revision: 2208
Modified:
plog/trunk/class/logger/loggermanager.class.php
Log:
just some reformatting
Modified: plog/trunk/class/logger/loggermanager.class.php
===================================================================
--- plog/trunk/class/logger/loggermanager.class.php 2005-06-12 00:04:43 UTC (rev 2207)
+++ plog/trunk/class/logger/loggermanager.class.php 2005-06-12 00:08:57 UTC (rev 2208)
@@ -19,8 +19,8 @@
*
* \ingroup logger
*
- * The logger manages a bunch of loggers configured in the config/logging.properties.php file. By default if no loggers
- * are specified it will create one logger called "default".
+ * The logger manages a bunch of loggers configured in the config/logging.properties.php file.
+ * By default if no loggers are specified it will create one logger called "default".
* In order to define new loggers, the configuration file has to look like this:
*
* $config["logger_name"] = Array(
@@ -29,13 +29,16 @@
* "file" => "file_for_fileappender",
* "prio" => "debug" );
*
- * Where "logger_name" is the identifer that we will use later on in the call to LoggerManager::getLogger()
- * later on to retrieve a handle to this particular logger.
+ * Where "logger_name" is the identifer that we will use later on in the call to
+ * LoggerManager::getLogger() later on to retrieve a handle to this particular logger.
*
* The available appenders are: "file", "stdout", "null"
- * The FileAppender class writes data to a log file, which must be specified via a property called "file"
+ * The FileAppender class writes data to a log file, which must be specified via a
+ * property called "file"
* The StdoutAppender class writes data to the console
- * The NullAppender does not write data anywhere, it's a "dumb" logger that does nothing.
+ * The NullAppender does not write data anywhere, it's a "dumb" logger that does nothing.
+ * If you do not want a logfile to be written, but want to safe your
+ * configuration, just change the appender from 'file' to 'null' :-)
*
* Layout formats:
* PatternLayout: allows to specify a pattern for our messages. Patterns are specified as follows:
@@ -55,7 +58,7 @@
* <li><b>%T</b> - a unix timestamp (seconds since January 1st, 1970)</li>
* </ul>
*
- * The available priorities are: debug > error > warn > info
+ * The available priorities are: error > warn > info
*
* NOTE: There can only be one appender and one layout class per logger.
*
@@ -111,7 +114,8 @@
// create the logger
$layout = new PatternLayout( $config->getLoggerLayout( $logger ));
- $appenderObject = $this->createAppenderInstance( $config->getLoggerAppender( $logger ), $layout, $properties );
+ $appenderObject = $this->createAppenderInstance( $config->getLoggerAppender( $logger ),
+ $layout, $properties );
// create the logger, set the appender and it to the list
$loggerObject = new Logger( $properties );
@@ -198,4 +202,4 @@
return NULL;
}
}
-?>
\ No newline at end of file
+?>
More information about the pLog-svn
mailing list