logging-log4php.git
8 years ago[maven-release-plugin] prepare release apache-log4php-2.0.0-incubating
Christian Grobmeier [Tue, 10 Nov 2009 07:01:08 +0000 (07:01 +0000)] 
[maven-release-plugin] prepare release apache-log4php-2.0.0-incubating

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@834364 13f79535-47bb-0310-9956-ffa450edef68

8 years agoreverted back before release:prepare
Christian Grobmeier [Mon, 9 Nov 2009 07:22:16 +0000 (07:22 +0000)] 
reverted back before release:prepare

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@833986 13f79535-47bb-0310-9956-ffa450edef68

8 years ago[maven-release-plugin] prepare release apache-log4php-2.0.0-incubating
Christian Grobmeier [Mon, 9 Nov 2009 07:17:51 +0000 (07:17 +0000)] 
[maven-release-plugin] prepare release apache-log4php-2.0.0-incubating

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@833985 13f79535-47bb-0310-9956-ffa450edef68

8 years agomake use of latest release plugin
Christian Grobmeier [Mon, 9 Nov 2009 07:16:33 +0000 (07:16 +0000)] 
make use of latest release plugin

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@833984 13f79535-47bb-0310-9956-ffa450edef68

8 years agomoved release goals to build
Christian Grobmeier [Mon, 9 Nov 2009 06:32:15 +0000 (06:32 +0000)] 
moved release goals to build

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@833978 13f79535-47bb-0310-9956-ffa450edef68

8 years agoavoided warning, suggested by Stephane Matamontero- thanks!
Christian Grobmeier [Wed, 4 Nov 2009 06:06:22 +0000 (06:06 +0000)] 
avoided warning, suggested by Stephane Matamontero- thanks!

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@832662 13f79535-47bb-0310-9956-ffa450edef68

8 years agoThe pear package file name, in contrast to the pear version inside the
Christian Hammers [Sun, 1 Nov 2009 16:56:41 +0000 (16:56 +0000)] 
The pear package file name, in contrast to the pear version inside the
package.xml, is allowed to have dashes. So we can use the same 2.0.0-incubator-SNAPSHOT
name as for the other distributed files.
This has the advantage that the enduser can identify the package as beeing
a snapshot before downloading it.
Once we get an pear repository this could have to be changed though.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831705 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Added the two pear package files so that the enduser is abled to use maven to
Christian Hammers [Sat, 31 Oct 2009 18:50:06 +0000 (18:50 +0000)] 
* Added the two pear package files so that the enduser is abled to use maven to
  build everything.
* Disabled the general inclusion of target/site as e.g. the test coverage report
  is of little interest to the enduser
* But explicitly included target/site/apidocs as this may be usefull

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831582 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* incubating is appended to version
Christian Hammers [Sat, 31 Oct 2009 18:31:36 +0000 (18:31 +0000)] 
* incubating is appended to version
* SNAPSHOT translated to package state "stable" or "snapshot"

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831580 13f79535-47bb-0310-9956-ffa450edef68

8 years agoswitched to SNAPSHOT version, added release plugin
Christian Grobmeier [Fri, 30 Oct 2009 06:58:17 +0000 (06:58 +0000)] 
switched to SNAPSHOT version, added release plugin

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831216 13f79535-47bb-0310-9956-ffa450edef68

8 years agoRenaming pear package as discussed on the -dev list
Christian Hammers [Thu, 29 Oct 2009 23:11:50 +0000 (23:11 +0000)] 
Renaming pear package as discussed on the -dev list

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831147 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAfter the recent introduction of "-d memory_limit" it's no longer necessary to
Christian Hammers [Thu, 29 Oct 2009 22:30:41 +0000 (22:30 +0000)] 
After the recent introduction of "-d memory_limit" it's no longer necessary to
hide the output of "pear package". Showing it on the other hand is really useful
if PEAR_PackageManager2 etc. are not installed.
The debug output in package.php is not necessary either and has been disabled.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@831123 13f79535-47bb-0310-9956-ffa450edef68

8 years agocleaned up
Christian Grobmeier [Thu, 29 Oct 2009 07:12:30 +0000 (07:12 +0000)] 
cleaned up

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830854 13f79535-47bb-0310-9956-ffa450edef68

8 years agoTypo, it's CHANGELOG not CHANGES
Christian Hammers [Tue, 27 Oct 2009 21:01:39 +0000 (21:01 +0000)] 
Typo, it's CHANGELOG not CHANGES

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830337 13f79535-47bb-0310-9956-ffa450edef68

8 years agoMarked the NOTICE as beeing "doc", too.
Christian Hammers [Tue, 27 Oct 2009 20:53:55 +0000 (20:53 +0000)] 
Marked the NOTICE as beeing "doc", too.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830333 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* merged the two phpunit executions for the code coverage and surefire report
Christian Hammers [Tue, 27 Oct 2009 20:53:04 +0000 (20:53 +0000)] 
* merged the two phpunit executions for the code coverage and surefire report
  into one to speed up the build process.
* reordered elements to <id><phase><goals> like the others are

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830332 13f79535-47bb-0310-9956-ffa450edef68

8 years agoPEAR package builds again.
Christian Hammers [Tue, 27 Oct 2009 20:44:06 +0000 (20:44 +0000)] 
PEAR package builds again.
To make "pear package" work, it must be executed in a directory that contains
exactly those files that should be part of the PEAR package therfore the ant
copy tasks are needed.
The resulting .tgz file is moved to /target as I found it convenient if it
can be found next to the normal .tar.gz and .zip files.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830330 13f79535-47bb-0310-9956-ffa450edef68

8 years agofixed package.xml creation, pear package still fails
Christian Grobmeier [Tue, 27 Oct 2009 07:13:06 +0000 (07:13 +0000)] 
fixed package.xml creation, pear package still fails

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830077 13f79535-47bb-0310-9956-ffa450edef68

8 years agoincluded package.xml, removed tar.gz
Christian Grobmeier [Tue, 27 Oct 2009 07:12:23 +0000 (07:12 +0000)] 
included package.xml, removed tar.gz

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830075 13f79535-47bb-0310-9956-ffa450edef68

8 years agoset default timezone, fails otherwise with php 5.3
Christian Grobmeier [Tue, 27 Oct 2009 07:11:33 +0000 (07:11 +0000)] 
set default timezone, fails otherwise with php 5.3

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830074 13f79535-47bb-0310-9956-ffa450edef68

8 years agomoved from gmail to apache address
Christian Grobmeier [Tue, 27 Oct 2009 06:25:07 +0000 (06:25 +0000)] 
moved from gmail to apache address

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830068 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Added CHANGES file
Christian Hammers [Mon, 26 Oct 2009 23:57:45 +0000 (23:57 +0000)] 
* Added CHANGES file
* Removed superfluous -incubating as the ${pom.version} contains it already

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@830030 13f79535-47bb-0310-9956-ffa450edef68

8 years agoremoved from package phase
Christian Grobmeier [Sun, 25 Oct 2009 12:27:57 +0000 (12:27 +0000)] 
removed from package phase

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@829556 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadded XML header
Christian Hammers [Sat, 24 Oct 2009 20:43:46 +0000 (20:43 +0000)] 
added XML header

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@829447 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadded XML header
Christian Hammers [Sat, 24 Oct 2009 20:43:29 +0000 (20:43 +0000)] 
added XML header

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@829446 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdded XML header for Eclipse syntax checking
Christian Hammers [Sat, 24 Oct 2009 20:43:06 +0000 (20:43 +0000)] 
Added XML header for Eclipse syntax checking

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@829445 13f79535-47bb-0310-9956-ffa450edef68

8 years agoWe don't have no build.xml anymore
Christian Hammers [Sat, 24 Oct 2009 19:41:55 +0000 (19:41 +0000)] 
We don't have no build.xml anymore

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@829437 13f79535-47bb-0310-9956-ffa450edef68

8 years agoappended assembly id
Christian Grobmeier [Fri, 23 Oct 2009 07:16:29 +0000 (07:16 +0000)] 
appended assembly id

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828949 13f79535-47bb-0310-9956-ffa450edef68

8 years agoreorderings, put executions in pom again (commented out)
Christian Grobmeier [Fri, 23 Oct 2009 07:12:13 +0000 (07:12 +0000)] 
reorderings, put executions in pom again (commented out)

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828947 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadded pear assembly file
Christian Grobmeier [Fri, 23 Oct 2009 06:58:46 +0000 (06:58 +0000)] 
added pear assembly file
change phpunits deprecated log-xml to log-junit

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828945 13f79535-47bb-0310-9956-ffa450edef68

8 years agostatic method cannot made non-static
Christian Grobmeier [Fri, 23 Oct 2009 06:37:23 +0000 (06:37 +0000)] 
static method cannot made non-static

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828941 13f79535-47bb-0310-9956-ffa450edef68

8 years agoChanged version number to 2.0.0-incubating as Christian G. suggested on the Wiki...
Christian Hammers [Thu, 22 Oct 2009 22:50:50 +0000 (22:50 +0000)] 
Changed version number to 2.0.0-incubating as Christian G. suggested on the Wiki page "Log4php Releaseplan".

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828888 13f79535-47bb-0310-9956-ffa450edef68

8 years agoCreate .zip file with identical content as the PEAR .tgz.
Christian Hammers [Thu, 22 Oct 2009 22:28:53 +0000 (22:28 +0000)] 
Create .zip file with identical content as the PEAR .tgz.
Too bad that the PEAR version number may not (it's validated) contain
the -SNAPSHOT so the it has to be specified separately. I could not
find out how to elegantly use sed or a regex in the pom.xml.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828879 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Try to be clever and extract version for pear package from pom.xml
Christian Hammers [Thu, 22 Oct 2009 22:26:29 +0000 (22:26 +0000)] 
* Try to be clever and extract version for pear package from pom.xml
* Replaced $notes by something more meaningful.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@828878 13f79535-47bb-0310-9956-ffa450edef68

8 years agoRemoved Apache License headers on two examples again and added
Christian Hammers [Tue, 20 Oct 2009 23:15:40 +0000 (23:15 +0000)] 
Removed Apache License headers on two examples again and added
README file that explains why they are not present in src/examples/*

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@827833 13f79535-47bb-0310-9956-ffa450edef68

8 years agoWhy restricting phplint runs to src/main, examples and tests are also important.
Christian Hammers [Tue, 20 Oct 2009 22:52:01 +0000 (22:52 +0000)] 
Why restricting phplint runs to src/main, examples and tests are also important.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@827828 13f79535-47bb-0310-9956-ffa450edef68

8 years agoIn the antrun:run{phplint} Maven task I replaced the <for> by <apply> and which
Christian Hammers [Tue, 20 Oct 2009 22:49:43 +0000 (22:49 +0000)] 
In the antrun:run{phplint} Maven task I replaced the <for> by <apply> and which
not only is shorter but also allowes us to get rid of the ant-contrib dependency
which caused build problems as it has a dependency on ant-1.6.x.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@827827 13f79535-47bb-0310-9956-ffa450edef68

8 years agoBuildbot now has sqlite enabled, we don't need the phpinfo() any more.
Christian Hammers [Tue, 20 Oct 2009 22:10:27 +0000 (22:10 +0000)] 
Buildbot now has sqlite enabled, we don't need the phpinfo() any more.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@827820 13f79535-47bb-0310-9956-ffa450edef68

8 years agoBefore we forget to change this...
Christian Hammers [Tue, 20 Oct 2009 22:06:56 +0000 (22:06 +0000)] 
Before we forget to change this...

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@827817 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Migrated the pear-package task to pom.xml.
Christian Hammers [Tue, 20 Oct 2009 00:47:24 +0000 (00:47 +0000)] 
* Migrated the pear-package task to pom.xml.
* build.xml is now no longer needed.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@826918 13f79535-47bb-0310-9956-ffa450edef68

8 years agoPorted "php -l" loop from build.xml into the process-sources phase of
Christian Hammers [Tue, 20 Oct 2009 00:19:40 +0000 (00:19 +0000)] 
Ported "php -l" loop from build.xml into the process-sources phase of
the maven default lifecycle (in other words, every php file gets syntax
checked before anything else happens).

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@826908 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-84 - undefined method in LoggerLoggingEvent when using LoggerRendererMap
Christian Hammers [Sun, 11 Oct 2009 23:18:53 +0000 (23:18 +0000)] 
LOG4PHP-84 - undefined method in LoggerLoggingEvent when using LoggerRendererMap
* Added test case
* Added fix to LoggerLoggingEvent
* Renamed logger in the properties file as the test failed when using ant while it
  succeeded when calling phpunit on this test directly. Probably because phpunit
  safed some static properties of some of the Logger classes between severy test files.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@824196 13f79535-47bb-0310-9956-ffa450edef68

8 years agophpdoc
Christian Hammers [Sun, 11 Oct 2009 22:51:24 +0000 (22:51 +0000)] 
phpdoc

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@824193 13f79535-47bb-0310-9956-ffa450edef68

8 years agotypo
Christian Hammers [Sun, 11 Oct 2009 22:50:39 +0000 (22:50 +0000)] 
typo

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@824192 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Added the new changes.xml to the pear package.
Christian Hammers [Sun, 11 Oct 2009 13:16:30 +0000 (13:16 +0000)] 
* Added the new changes.xml to the pear package.
* Added mylself as developer into the pear package.xml.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@824069 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLet's see if the buildbot has PDO and SQLite installed
Christian Hammers [Sun, 11 Oct 2009 12:06:57 +0000 (12:06 +0000)] 
Let's see if the buildbot has PDO and SQLite installed

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@824059 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdded some bugs that were fixed in the last weeks
Christian Hammers [Sun, 11 Oct 2009 00:01:55 +0000 (00:01 +0000)] 
Added some bugs that were fixed in the last weeks

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823983 13f79535-47bb-0310-9956-ffa450edef68

8 years ago"Thou shalt not fail silently!" :)
Christian Hammers [Sat, 10 Oct 2009 23:16:00 +0000 (23:16 +0000)] 
"Thou shalt not fail silently!" :)
* If $to or $layout are unset an Exception is thrown early during activateOptions().
* If $from is unset and the ini var "sendmail_from" is empty an Exception is thrown.
* Warnings from mail() are not longer suppressed. On return false an Exception is thrown.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823977 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Keep @ before fsockopen but afterwards test return value and not errno which can...
Christian Hammers [Sat, 10 Oct 2009 16:31:07 +0000 (16:31 +0000)] 
* Keep @ before fsockopen but afterwards test return value and not errno which can be 0.
* Now __destruct() checks if $this->sp is really set
* If the remote host cannot be reached an LoggerException is raised instead of silently disabling logging
* Added testcase

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823882 13f79535-47bb-0310-9956-ffa450edef68

8 years agoThere should be no case where strtolower or get_object_class gives a warning so the...
Christian Hammers [Sat, 10 Oct 2009 16:28:15 +0000 (16:28 +0000)] 
There should be no case where strtolower or get_object_class gives a warning so the @ can be omitted.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823880 13f79535-47bb-0310-9956-ffa450edef68

8 years agoCeki Gülcü was rendered wrong. As I read something about UTF-8 problems
Christian Hammers [Sat, 10 Oct 2009 15:59:36 +0000 (15:59 +0000)] 
Ceki Gülcü was rendered wrong. As I read something about UTF-8 problems
with Doxia the *.apt files should now contain proper &uuml; in ISO-8859-1.
I'll check on ci.apache.org if it's rendered correctly now.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823875 13f79535-47bb-0310-9956-ffa450edef68

8 years agotypo
Christian Hammers [Sat, 10 Oct 2009 15:29:05 +0000 (15:29 +0000)] 
typo

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823872 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAnother license header addition to trigger site build
Gavin McDonald [Sat, 10 Oct 2009 08:18:01 +0000 (08:18 +0000)] 
Another license header addition to trigger site build

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823816 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdd license header, minor change to trigger automatic site build
Gavin McDonald [Sat, 10 Oct 2009 07:14:19 +0000 (07:14 +0000)] 
Add license header, minor change to trigger automatic site build

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@823808 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdded changelog entries for the bugs I fixed recently.
Christian Hammers [Wed, 7 Oct 2009 22:26:31 +0000 (22:26 +0000)] 
Added changelog entries for the bugs I fixed recently.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822943 13f79535-47bb-0310-9956-ffa450edef68

8 years agoMoved myself from <contributors> to <developers> :)
Christian Hammers [Wed, 7 Oct 2009 22:21:23 +0000 (22:21 +0000)] 
Moved myself from <contributors> to <developers> :)

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822937 13f79535-47bb-0310-9956-ffa450edef68

8 years agoSo we have phpdoc generation in build.xml and pom.xml? Strange. But this
Christian Hammers [Wed, 7 Oct 2009 18:14:49 +0000 (18:14 +0000)] 
So we have phpdoc generation in build.xml and pom.xml? Strange. But this
one seems to be the relevant one.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822818 13f79535-47bb-0310-9956-ffa450edef68

8 years agonicer layout of phpdoc apidocs
Christian Hammers [Wed, 7 Oct 2009 17:56:47 +0000 (17:56 +0000)] 
nicer layout of phpdoc apidocs

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822814 13f79535-47bb-0310-9956-ffa450edef68

8 years agoEclipse generates some files which should be excluded from SVN.
Christian Hammers [Tue, 6 Oct 2009 20:32:16 +0000 (20:32 +0000)] 
Eclipse generates some files which should be excluded from SVN.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822483 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-46 Use PreparedStatement in PDO-Appender
Christian Hammers [Tue, 6 Oct 2009 20:28:47 +0000 (20:28 +0000)] 
LOG4PHP-46      Use PreparedStatement in PDO-Appender
LOG4PHP-47      Check if PDO Appender needs quote()
LOG4PHP-79      AppenderPDO: Some database fields seem a bit too short

Improved version of the PDO appender. Apart from increased field
sizes in the CREATE statement, this one features a new configuration
style that enables us to use prepared statements and therefore
automatically quoting.

The old style is documented as deprecated but still working to
make updates from earlier log4php versions easier.

phpunit test case attached.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822478 13f79535-47bb-0310-9956-ffa450edef68

8 years agoSeems as if some patch got applied twice.
Christian Hammers [Tue, 6 Oct 2009 20:17:23 +0000 (20:17 +0000)] 
Seems as if some patch got applied twice.
Just phpdoc changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822469 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-81
Christian Hammers [Tue, 6 Oct 2009 20:14:46 +0000 (20:14 +0000)] 
LOG4PHP-81
Now that we have the new toBoolean method we can use it.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822466 13f79535-47bb-0310-9956-ffa450edef68

8 years agojust phpdoc
Christian Hammers [Tue, 6 Oct 2009 20:13:10 +0000 (20:13 +0000)] 
just phpdoc

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822465 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-81
Christian Hammers [Tue, 6 Oct 2009 20:11:33 +0000 (20:11 +0000)] 
LOG4PHP-81
Made mistakes with diff...

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822464 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-81
Christian Hammers [Tue, 6 Oct 2009 19:57:41 +0000 (19:57 +0000)] 
LOG4PHP-81
Why was that missing from the previous commit?!

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822463 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLOG4PHP-81
Christian Hammers [Tue, 6 Oct 2009 19:54:12 +0000 (19:54 +0000)] 
LOG4PHP-81
Boolean values in .properties files and incorrectly parsed by LoggerConfiguratorIni.

Currently boolean values in log4php.properties have to be written as "true" and
"false", i.e. as strings because they do not get parsed correctly else.

This is quite irritating as the ini file format as well as the name of the
configurator suggests that this file does behave like a PHP .ini file where
true/false/on/off etc. can be used.  Moreover it is no problem with log4j and
the properties files should be interchangeable if possible.

The patch basically it does three things:

1. LoggerOptionConvert::findAndSubst() no longer tries to be clever and skips
   settings where empty($value)==true because PHPs parse_ini_file() already
   converts a false without quotes to an empty string.

2. As the generic options parser cannot distinguish if the user has written the
   number 0 or the boolean false (both is converted to string(1)"0" by
   parse_ini_file()) etc. the conversion has to be done in the setter methods
   because only they know if they want numbers or booleans for their attributes.

3. Those setter methods can use the already existing toBoolean() method.
   Although until now it did not handle all cases that parse_ini_file() mangles
   correctly.

A phpunit test case is also attached.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822461 13f79535-47bb-0310-9956-ffa450edef68

8 years agoIf the user tries to set an option via the config file that does
Christian Hammers [Tue, 6 Oct 2009 19:43:29 +0000 (19:43 +0000)] 
If the user tries to set an option via the config file that does
not exists it was silently ignored. Now an exception is raised
to give the user a hint where he made the error.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822460 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLast patch with only phpdoc changes
Christian Hammers [Tue, 6 Oct 2009 19:29:34 +0000 (19:29 +0000)] 
Last patch with only phpdoc changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822453 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadded link to new appender-layout.apt and fixed minor wording
Christian Hammers [Tue, 6 Oct 2009 19:26:02 +0000 (19:26 +0000)] 
added link to new appender-layout.apt and fixed minor wording

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822449 13f79535-47bb-0310-9956-ffa450edef68

8 years agoOnly phpdoc changes
Christian Hammers [Tue, 6 Oct 2009 19:23:53 +0000 (19:23 +0000)] 
Only phpdoc changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822448 13f79535-47bb-0310-9956-ffa450edef68

8 years agoOnly phpdoc changes
Christian Hammers [Tue, 6 Oct 2009 19:20:15 +0000 (19:20 +0000)] 
Only phpdoc changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822445 13f79535-47bb-0310-9956-ffa450edef68

8 years agoThe rest of my changes to the examples dir.
Christian Hammers [Tue, 6 Oct 2009 19:17:55 +0000 (19:17 +0000)] 
The rest of my changes to the examples dir.
Mostly added START SNIPPET: doxia" tags.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822444 13f79535-47bb-0310-9956-ffa450edef68

8 years agoThose files were renamed e.g. from mail.php to appender_mail.php...
Christian Hammers [Tue, 6 Oct 2009 19:15:28 +0000 (19:15 +0000)] 
Those files were renamed e.g. from mail.php to appender_mail.php...

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822438 13f79535-47bb-0310-9956-ffa450edef68

8 years agoBut now come the appender_* examples
Christian Hammers [Tue, 6 Oct 2009 19:11:58 +0000 (19:11 +0000)] 
But now come the appender_* examples

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822435 13f79535-47bb-0310-9956-ffa450edef68

8 years agoappender examples
Christian Hammers [Tue, 6 Oct 2009 19:10:17 +0000 (19:10 +0000)] 
appender examples

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822434 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Examples for the various Renderer classes.
Christian Hammers [Tue, 6 Oct 2009 19:02:35 +0000 (19:02 +0000)] 
* Examples for the various Renderer classes.
* Renamed old examples to renderer_*
* Linked examples to renderer.apt and classes' phpdoc
* No code change

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822432 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Examples for the various Filter classes
Christian Hammers [Tue, 6 Oct 2009 18:51:48 +0000 (18:51 +0000)] 
* Examples for the various Filter classes
* References from the appender-filter.apt as well as from
  the classes phpdoc
* Renamed existing examples to filter_*

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822426 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Examples for the various Configurator classes. They are referenced
Christian Hammers [Tue, 6 Oct 2009 18:46:44 +0000 (18:46 +0000)] 
* Examples for the various Configurator classes. They are referenced
  from the classes phpdoc and the configuration.apt.
* No code change

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822422 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdded docs and examples for every LoggerLayout.
Christian Hammers [Tue, 6 Oct 2009 18:29:33 +0000 (18:29 +0000)] 
Added docs and examples for every LoggerLayout.

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822416 13f79535-47bb-0310-9956-ffa450edef68

8 years agofor phpdoc
Christian Hammers [Tue, 6 Oct 2009 18:29:05 +0000 (18:29 +0000)] 
for phpdoc

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822415 13f79535-47bb-0310-9956-ffa450edef68

8 years agoMore LoggerLayout examples
Christian Hammers [Tue, 6 Oct 2009 18:28:45 +0000 (18:28 +0000)] 
More LoggerLayout examples

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822414 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Added @package for phpdoc
Christian Hammers [Tue, 6 Oct 2009 18:28:08 +0000 (18:28 +0000)] 
* Added @package for phpdoc
* Added @examples to phpdoc

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822412 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for layout_xml
Christian Hammers [Tue, 6 Oct 2009 18:27:11 +0000 (18:27 +0000)] 
Example for layout_xml

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822411 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for layout_simple
Christian Hammers [Tue, 6 Oct 2009 18:26:42 +0000 (18:26 +0000)] 
Example for layout_simple

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822410 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for layout_html
Christian Hammers [Tue, 6 Oct 2009 18:26:10 +0000 (18:26 +0000)] 
Example for layout_html

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822409 13f79535-47bb-0310-9956-ffa450edef68

8 years agodirname patch to be able to run it from root directory as well as from maven
Christian Hammers [Tue, 6 Oct 2009 18:24:22 +0000 (18:24 +0000)] 
dirname patch to be able to run it from root directory as well as from maven

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822408 13f79535-47bb-0310-9956-ffa450edef68

8 years agoThis is related to r822029
Christian Hammers [Tue, 6 Oct 2009 18:24:01 +0000 (18:24 +0000)] 
This is related to r822029

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822407 13f79535-47bb-0310-9956-ffa450edef68

8 years agoTook me a while to figure out so I wrote it down...
Christian Hammers [Tue, 6 Oct 2009 18:23:39 +0000 (18:23 +0000)] 
Took me a while to figure out so I wrote it down...

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822406 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Typo in class name
Christian Hammers [Tue, 6 Oct 2009 18:23:06 +0000 (18:23 +0000)] 
* Typo in class name
* Wrong order in assertEquals()

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822405 13f79535-47bb-0310-9956-ffa450edef68

8 years agoJust a comment in case anybody else looks why ob_start() does not work
Christian Hammers [Tue, 6 Oct 2009 18:22:45 +0000 (18:22 +0000)] 
Just a comment in case anybody else looks why ob_start() does not work

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822404 13f79535-47bb-0310-9956-ffa450edef68

8 years agoEven LoggerAppenderNull ist not supposed to log "null" :) Does no longer work
Christian Hammers [Tue, 6 Oct 2009 18:22:26 +0000 (18:22 +0000)] 
Even LoggerAppenderNull ist not supposed to log "null" :) Does no longer work
after changing all the appenders to: append(LoggerLoggingEvent $event).

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822403 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Improved error handling if the logfile cannot be created.
Christian Hammers [Tue, 6 Oct 2009 18:21:46 +0000 (18:21 +0000)] 
* Improved error handling if the logfile cannot be created.
* Added corresponding unit test
* Replaced all those ../../../ by an instance var

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822402 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* Added the previously committed examples to the phpdoc
Christian Hammers [Tue, 6 Oct 2009 18:20:56 +0000 (18:20 +0000)] 
* Added the previously committed examples to the phpdoc
* Added @package to the file level comment to make phpdoc happy
* Added some @var comments to aid IDE auto-completion
* No code change

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822399 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for appender_dailyfile
Christian Hammers [Tue, 6 Oct 2009 18:13:44 +0000 (18:13 +0000)] 
Example for appender_dailyfile

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822393 13f79535-47bb-0310-9956-ffa450edef68

8 years ago* type-safety doesn't hurt
Christian Hammers [Tue, 6 Oct 2009 18:12:50 +0000 (18:12 +0000)] 
* type-safety doesn't hurt
* Added @package for phpdoc

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822392 13f79535-47bb-0310-9956-ffa450edef68

8 years agoLog:
Christian Hammers [Tue, 6 Oct 2009 18:06:19 +0000 (18:06 +0000)] 
Log:
* Added examples for every appender
* Added TOC as the page got pretty long

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822388 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for appender_syslog
Christian Hammers [Tue, 6 Oct 2009 17:22:57 +0000 (17:22 +0000)] 
Example for appender_syslog

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822362 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for appender_socket
Christian Hammers [Tue, 6 Oct 2009 17:22:31 +0000 (17:22 +0000)] 
Example for appender_socket

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822361 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for appender_php
Christian Hammers [Tue, 6 Oct 2009 17:21:58 +0000 (17:21 +0000)] 
Example for appender_php

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822360 13f79535-47bb-0310-9956-ffa450edef68

8 years agoExample for appender_null
Christian Hammers [Tue, 6 Oct 2009 17:21:33 +0000 (17:21 +0000)] 
Example for appender_null

git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@822359 13f79535-47bb-0310-9956-ffa450edef68