[pLog-svn] r2985 - in plog/trunk: class/misc config
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Feb 25 22:51:02 GMT 2006
Author: oscar
Date: 2006-02-25 22:51:01 +0000 (Sat, 25 Feb 2006)
New Revision: 2985
Modified:
plog/trunk/class/misc/info.class.php
plog/trunk/config/logging.properties.php
Log:
the metrics logging is useless without the timestamp in it...
Modified: plog/trunk/class/misc/info.class.php
===================================================================
--- plog/trunk/class/misc/info.class.php 2006-02-24 06:13:52 UTC (rev 2984)
+++ plog/trunk/class/misc/info.class.php 2006-02-25 22:51:01 UTC (rev 2985)
@@ -53,6 +53,7 @@
include_once( PLOG_CLASS_PATH."class/logger/loggermanager.class.php" );
include_once( PLOG_CLASS_PATH."class/cache/cachemanager.class.php" );
include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
global $__metrics_start_time;
@@ -78,7 +79,9 @@
if( $numQueries == "" ) $numQueries = 0;
// build the message
- $message = Info::getMemoryUsage().",".
+ $t = new Timestamp();
+ $message = $t->getTimestamp().",".
+ Info::getMemoryUsage().",".
$totalTime.",".
count(get_included_files()).",".
$numQueries.",".
Modified: plog/trunk/config/logging.properties.php
===================================================================
--- plog/trunk/config/logging.properties.php 2006-02-24 06:13:52 UTC (rev 2984)
+++ plog/trunk/config/logging.properties.php 2006-02-25 22:51:01 UTC (rev 2985)
@@ -46,6 +46,7 @@
# special logger for metrics and performance statistics. This file is a CSV file and the
# columns have the following meaning:
#
+# timestamp (14-digit)
# memory usage
# total execution time
# number of included files
More information about the pLog-svn
mailing list