cvs: pear /Log/Log console.php file.php

From: Date: Mon, 20 May 2002 22:51:14 +0000
Subject: cvs: pear /Log/Log console.php file.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3988@lists.php.net to get a copy of this message
rashid Mon May 20 18:51:14 2002 EDT Modified files: /pear/Log/Log console.php file.php Log: fixed bug causing no time output on windows platform (wrong strftime format string) Index: pear/Log/Log/console.php diff -u pear/Log/Log/console.php:1.4 pear/Log/Log/console.php:1.5 --- pear/Log/Log/console.php:1.4 Mon Apr 29 01:18:45 2002 +++ pear/Log/Log/console.php Mon May 20 18:51:08 2002 @@ -1,12 +1,12 @@ <?php -// $Id: console.php,v 1.4 2002/04/29 05:18:45 jon Exp $ +// $Id: console.php,v 1.5 2002/05/20 22:51:08 rashid Exp $ /** * The Log_console class is a concrete implementation of the Log:: * abstract class which writes message to the text console. * * @author Jon Parise <jon@php.net> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package Log */ class Log_console extends Log @@ -43,7 +43,7 @@ /* Abort early if the priority is above the maximum logging level. */ if ($priority > $this->_maxLevel) return; - printf("%s %s [%s] %s\n", strftime('%b %d %T'), $this->_ident, + printf("%s %s [%s] %s\n", strftime('%b %d %H:%M:%S'), $this->_ident, Log::priorityToString($priority), $message); $this->notifyAll(array('priority' => $priority, 'message' => $message)); Index: pear/Log/Log/file.php diff -u pear/Log/Log/file.php:1.4 pear/Log/Log/file.php:1.5 --- pear/Log/Log/file.php:1.4 Mon Apr 29 01:18:45 2002 +++ pear/Log/Log/file.php Mon May 20 18:51:08 2002 @@ -1,5 +1,5 @@ <?php -// $Id: file.php,v 1.4 2002/04/29 05:18:45 jon Exp $ +// $Id: file.php,v 1.5 2002/05/20 22:51:08 rashid Exp $ // $Horde: horde/lib/Log/file.php,v 1.4 2000/06/28 21:36:13 jon Exp $ /** @@ -7,7 +7,7 @@ * abstract class which writes message to a text file. * * @author Jon Parise <jon@horde.org> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @since Horde 1.3 * @package Log */ @@ -94,7 +94,7 @@ $this->open(); } - $entry = sprintf("%s %s [%s] %s\n", strftime('%b %d %T'), + $entry = sprintf("%s %s [%s] %s\n", strftime('%b %d %H:%M:%S'), $this->_ident, Log::priorityToString($priority), $message); if ($this->fp) {

« previous php.pear.cvs (#3988) next »