[pLog-svn] r724 - plog/trunk

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Jan 10 18:12:11 GMT 2005


Author: oscar
Date: 2005-01-10 18:12:10 +0000 (Mon, 10 Jan 2005)
New Revision: 724

Modified:
   plog/trunk/atom.php
Log:
made some fixes according to (http://bugs.plogworld.net/view.php?id=134)


Modified: plog/trunk/atom.php
===================================================================
--- plog/trunk/atom.php	2005-01-10 18:01:10 UTC (rev 723)
+++ plog/trunk/atom.php	2005-01-10 18:12:10 UTC (rev 724)
@@ -9,19 +9,16 @@
     }
     	 
 	include_once( PLOG_CLASS_PATH."plugins/atom/class/xml/atom/atomserver.class.php" );
-	include_once( PLOG_CLASS_PATH."class/logger/logger.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/atom/class/logger/atomlogger.class.php" );
     include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
 	include_once( PLOG_CLASS_PATH."debug.php" );    	
+
 	
 	// some of our settings are in the configuration
 	$config =& Config::getConfig();	
 	
-	// prepare the logging engine, if needed1
-	$logEnabled = $config->getValue( "atom_logging_enabled" );
-	Logger::setEnabled( $logEnabled );
-	Logger::setLogFilePath( "./tmp", "atom.log" );
-	Logger::Log( "** Starting **" );
-	Logger::Log( "   Request URI: ".$_SERVER["REQUEST_URI"] );
+	AtomLogger::Log( "** Starting **" );
+	AtomLogger::Log( "   Request URI: ".$_SERVER["REQUEST_URI"] );
 	
 	// process the incoming request
 	$server = new AtomServer();
@@ -51,6 +48,6 @@
 	
 	print( $response->getOutput());
 
-	Logger::log( "   Response sent: ".$response->getOutput());
-	Logger::log( "** End **" );
+	AtomLogger::Log( "   Response sent: ".$response->getOutput());
+	AtomLogger::Log( "** End **" );
 ?>
\ No newline at end of file




More information about the pLog-svn mailing list