diff options
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | framework/Util/TPropelLogRoute.php | 98 | 
2 files changed, 0 insertions, 99 deletions
diff --git a/.gitattributes b/.gitattributes index dc6eb427..44fd8a48 100644 --- a/.gitattributes +++ b/.gitattributes @@ -665,7 +665,6 @@ framework/Util/TDataFieldAccessor.php -text  framework/Util/TLogRouter.php -text  framework/Util/TLogger.php -text  framework/Util/TParameterModule.php -text -framework/Util/TPropelLogRoute.php -text  framework/Util/TSimpleDateFormatter.php -text  framework/Util/TVarDumper.php -text  framework/Web/Javascripts/TJSON.php -text diff --git a/framework/Util/TPropelLogRoute.php b/framework/Util/TPropelLogRoute.php deleted file mode 100644 index eb87ca19..00000000 --- a/framework/Util/TPropelLogRoute.php +++ /dev/null @@ -1,98 +0,0 @@ -<?php
 -/**
 - * TLogger class file
 - *
 - * @author Jason Ragsdale <jrags@jasrags.net>
 - * @link http://www.pradosoft.com/
 - * @copyright Copyright © 2006 PradoSoft
 - * @license http://www.pradosoft.com/license/
 - * @version $Revision: $  $Date: $
 - * @package System.Util
 - */
 -
 -/**
 - * TPropelLogRoute class.
 - *
 - * TPropelLogRoute saves selected log messages into a Propel database.
 - * The name of the Propel database object used to represent each message
 - * is specified by {@link setPropelObjectName PropelObjectName}, which defaults
 - * to 'PradoLog'.
 - *
 - * The schema of the Propel object must be as follows (the table name can be
 - * changed to the value of {@link getPropelObjectName PropelObjectName}.
 - * <code>
 - * <table name="Pradolog">
 - * 	<column
 - * 		name="ID"
 - * 		required="true"
 - * 		primaryKey="true"
 - * 		autoIncrement="true"
 - * 		type="INTEGER" />
 - * 	<column
 - * 		name="Category"
 - * 		required="true"
 - * 		type="VARCHAR"
 - * 		size="255" />
 - * 	<column
 - * 		name="Level"
 - * 		required="true"
 - * 		type="VARCHAR"
 - * 		size="255" />
 - * 	<column
 - * 		name="Message"
 - * 		required="true"
 - * 		type="LONGVARCHAR"
 - * 		size="2048" />
 - * 	<column
 - * 		name="Time"
 - * 		required="true"
 - * 		type="DOUBLE"
 - *		size="14"
 - *		scale="4" />
 - * </table>
 - * </code>
 - *
 - * @author Jason Ragsdale <jrags@jasrags.net>
 - * @version $Revision: $  $Date: $
 - * @package System.Util
 - * @since 3.0
 - */
 -class TPropelLogRoute extends TLogRoute
 -{
 -	private $_className='Pradolog';
 -
 -	/**
 -	 * @return string the name of the Prople object used to save each log message. Defaults to 'PradoLog'.
 -	 */
 -	public function getPropelObjectName()
 -	{
 -		return $this->_className;
 -	}
 -
 -	/**
 -	 * @param string the name of the Prople object used to save each log message. The name can be in namespace format.
 -	 */
 -	public function setPropelObjectName($value)
 -	{
 -		$this->_className=$value;
 -	}
 -
 -	/**
 -	 * Saves log messages to the Propel database object.
 -	 *
 -	 * @param array $logs
 -	 */
 -	protected function processLogs($logs)
 -	{
 -		foreach($logs as $log)
 -		{
 -			$pradoLog=Prado::createComponent($this->_className);
 -			$pradoLog->setMessage($log[0]);
 -			$pradoLog->setLevel($this->getLevelName($log[1]));
 -			$pradoLog->setCategory($log[2]);
 -			$pradoLog->setTime($log[3]);
 -			$pradoLog->save();
 -		}
 -	}
 -}
 -?>
\ No newline at end of file  | 
