update pear-Log to (most recent) 1.8.1. Changes since 1.7.0:

1.8.1:
* Fixed some bugs in the 'win' handler.
* Updated the Log_observer::factory() method for consistency
  with Log::factory().

1.8.0:
* The Log package now includes a users guide, example scripts and unit tests.
* A number of small improvements have been made to the 'win' log handler
  (based on suggestions from Paul Yanchenko).
* A new 'display' log handler has been added to the distribution. Contributed
  by Paul Yanchenko, this handler simply prints the error message back
  to the browser. It respects the 'error_prepend_string' and
  'error_append_string' PHP INI values and is useful when using
  PEAR::setErrorHandling()'s PEAR_ERROR_CALLBACK mechanism.

1.7.1:
* The mail handler now uses "\n" to terminate lines instead of "\r\n".
* The file handler's path creation routines now guard against potentially
  infinite recursion.
* It is now possible to pass an object to the logging methods. If the object
  offers a PEAR_Error-style getMessage() or PHP5 exception-style toString()
  method, it will be used to extract the message text.

Documentation and the guide are installed in ${LOCALBASE}/share/doc/pear-Log.
This commit is contained in:
jdolecek 2003-12-17 19:58:13 +00:00
parent fbd15f795d
commit 7abced0a17
5 changed files with 38 additions and 9 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: CHANGES,v 1.4165 2003/12/17 19:30:12 jdolecek Exp $
$NetBSD: CHANGES,v 1.4166 2003/12/17 19:58:13 jdolecek Exp $
Changes to the packages collection and infrastructure in 2003:
@ -5216,3 +5216,4 @@ Changes to the packages collection and infrastructure in 2003:
Added pear-HTML_Common-1.2.1 [jdolecek 2003-12-17]
Added pear-HTML_Select-1.2 [jdolecek 2003-12-17]
Added pear-Log-1.7.0 [jdolecek 2003-12-17]
Updated pear-Log to 1.8.1 [jdolecek 2003-12-17]

View file

@ -1,3 +1,3 @@
The Log framework provides an abstracted logging system for PHP. It supports
logging to console, file, syslog, SQL, mail, and mcal targets. It also
provides a subject - observer mechanism.
logging to console, display, file, syslog, SQL, mail, and mcal targets.
It also provides a subject - observer mechanism.

View file

@ -1,11 +1,24 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/12/17 19:27:29 jdolecek Exp $
# $NetBSD: Makefile,v 1.2 2003/12/17 19:58:13 jdolecek Exp $
DISTNAME= Log-1.7.0
DISTNAME= Log-1.8.1
CATEGORIES= sysutils
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.csh.rit.edu/~jon/projects/pear_log/
COMMENT= PHP Log framework provides an abstracted logging system
DOCDIR= ${LOCALBASE}/share/doc/pear-Log
MESSAGE_SUBST+= DOCDIR=${DOCDIR}
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${DOCDIR}/examples
${INSTALL_DATA} ${WRKSRC}/docs/guide.txt ${DOCDIR}/guide.txt
(cd ${WRKSRC}/docs/examples; \
for file in *.php; do \
${INSTALL_DATA} $$file ${DOCDIR}/examples/$$file; \
done; \
)
.include "../../www/php4/pear.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1 +1,16 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/17 19:27:29 jdolecek Exp $
@comment $NetBSD: PLIST,v 1.2 2003/12/17 19:58:13 jdolecek Exp $
share/doc/pear-Log/guide.txt
share/doc/pear-Log/examples/composite.php
share/doc/pear-Log/examples/console.php
share/doc/pear-Log/examples/display.php
share/doc/pear-Log/examples/error_log.php
share/doc/pear-Log/examples/file.php
share/doc/pear-Log/examples/mail.php
share/doc/pear-Log/examples/observer_mail.php
share/doc/pear-Log/examples/pear_error_handler.php
share/doc/pear-Log/examples/php_error_handler.php
share/doc/pear-Log/examples/sql.php
share/doc/pear-Log/examples/syslog.php
share/doc/pear-Log/examples/win.php
@dirrm share/doc/pear-Log/examples
@dirrm share/doc/pear-Log

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2003/12/17 19:27:29 jdolecek Exp $
$NetBSD: distinfo,v 1.2 2003/12/17 19:58:13 jdolecek Exp $
SHA1 (Log-1.7.0.tgz) = 012b23b013a435cd6581161a30f46178e32841bd
Size (Log-1.7.0.tgz) = 14384 bytes
SHA1 (Log-1.8.1.tgz) = 44a9a02fc923983d58a6eb6ffaee12be50fb7748
Size (Log-1.8.1.tgz) = 24960 bytes