Hi Ivan,

thanks for your response, I'll check out the new Log4PHP version when I get
that far. PHP-Maven is a continuously evolving project that allows using
Maven with PHP. Personally, I think it's rather useful, it's worth to take
a closer look at it.

Best regards,
Gábor Dicső

2012/11/2 Ivan Habunek <ivan.habu...@gmail.com>

> In the conversionPattern, long conversion words (%date, %logger, etc)
> were implemented in version 2.3.0. You need to upgrade to 2.3.0 to use
> them. I have to add a note to the PatternLayout docs to avoid future
> confusion.
>
> The older versions only detect single-letter conversion words (%d, %l,
> ...) and that's why you get the strange output.
>
> Frankly, I have no idea who added log4php to the PHP Maven repository.
> I wasn't aware it existed until just now. :) So that's not a
> repository we currently support.
>
> You can get the latest version by either:
> - downloading a source package from
> http://logging.apache.org/log4php/download.html
> - from out pear channel: http://pear.apache.org/log4php/
> - using Composer: https://packagist.org/packages/apache/log4php
>
> Regards,
> Ivan
>
>
> On 2 November 2012 16:43, Christian Grobmeier <grobme...@gmail.com> wrote:
> > Hi,
> >
> > I received this e-mail before short
> >
> > Cheers
> > Christian
> >
> > ---------- Forwarded message ----------
> > From: Gábor Dicső <gabor.di...@inepex.com>
> > Date: Fri, Nov 2, 2012 at 4:34 PM
> > Subject: Re: Log4Php Quickstart, config.xml minor issue
> > To: Christian Grobmeier <grobme...@apache.org>
> >
> >
> > Sure, it's OK. Thanks,
> >
> > Gábor
> >
> >
> > 2012/11/2 Christian Grobmeier <grobme...@apache.org>
> >>
> >> Hello Gábor,
> >>
> >> with your permission I forward this e-mail to our user mailinglist. OK
> for
> >> you?
> >>
> >> Cheers
> >> Christian
> >>
> >>
> >> On Fri, Nov 2, 2012 at 4:04 PM, Gábor Dicső <gabor.di...@inepex.com>
> >> wrote:
> >>>
> >>> Hi Christian,
> >>>
> >>> thanks for your response. I had luck you came second in the list of the
> >>> team members. :) I believe it would be better to update that page
> though.
> >>> I'll check the mailing list.
> >>>
> >>> My sample PHP code was (inside a PHPUnit test class named Log4PhpTest):
> >>>
> >>> Logger::configure('/path/to/config.xml');
> >>> $logger = Logger::getLogger(__CLASS__);
> >>> $logger->info("info(), Test log message, info");
> >>> $logger->log(LoggerLevel::getLevelInfo(), "log(), Test log message,
> >>> info");
> >>> $logger->log(LoggerLevel::getLevelError(), "log(), Test log message,
> >>> error");
> >>>
> >>> Actually, there is nothing major, but my log messages using the
> settings
> >>> on the page looked like this:
> >>>
> >>> 2012-11-02 15:50:46,832ate
> >>> [Log4PhpTest.test(/path/to/Log4PhpTest.php:7)ogger] info(), Test log
> >>> message, infoessage
> >>> ewline2012-11-02 15:50:46,836ate
> >>> [Log4PhpTest.test(/path/to/Log4PhpTest.php:8)ogger] log(), Test log
> message,
> >>> infoessage
> >>> ewline2012-11-02 15:50:46,837ate
> >>> [Log4PhpTest.test(/path/to/Log4PhpTest.php:9)ogger] log(), Test log
> message,
> >>> erroressage
> >>> ewline
> >>>
> >>> Note "ate", "ogger", "essage", "ewline" in each message. After
> correcting
> >>> the settings, I got:
> >>>
> >>> 2012-11-02 15:55:28,449 [Log4PhpTest.test(/path/to/Log4PhpTest.php:7)]
> >>> info(), Test log message, info
> >>> 2012-11-02 15:55:28,453 [Log4PhpTest.test(/path/to/Log4PhpTest.php:8)]
> >>> log(), Test log message, info
> >>> 2012-11-02 15:55:28,455 [Log4PhpTest.test(/path/to/Log4PhpTest.php:9)]
> >>> log(), Test log message, error
> >>>
> >>> which is OK. To be honest, I didn't check the patterns you linked in
> your
> >>> response, but I guess using the longer conversion specifiers shouldn't
> >>> result in what I pasted above.
> >>>
> >>> I'm using Ubuntu 11.10 32-bit, and Apache_log4php version 2.2.1 from
> the
> >>> PHP-Maven repository. Hope that helps.
> >>>
> >>> Best regards,
> >>> Gábor Dicső
> >>>
> >>> 2012/11/2 Christian Grobmeier <grobme...@apache.org>
> >>>>
> >>>> Hello Gabor,
> >>>>
> >>>> thanks for telling me. I was just double checking with that:
> >>>> http://logging.apache.org/log4php/docs/layouts/pattern.html
> >>>>
> >>>> and it shows me that %date and the others should be possible.
> >>>> Do you have any issues which appear with that?
> >>>>
> >>>> About Alveros E-Mail, I have not heard of him for years. Currently
> there
> >>>> are 2 active committers, Ivan Habunek and myself.
> >>>> Anyway, the best way to ask questions is to subscribe to our
> mailinglist
> >>>> were many people might help you:
> >>>>
> >>>> http://logging.apache.org/log4php/mail-lists.html
> >>>>
> >>>> I would be glad to learn more about your issue.
> >>>>
> >>>> Thanks!
> >>>> Christian
> >>>>
> >>>>
> >>>> On Fri, Nov 2, 2012 at 1:43 PM, Gábor Dicső <gabor.di...@inepex.com>
> >>>> wrote:
> >>>>>
> >>>>> Hi Christian,
> >>>>>
> >>>>> I'm experimenting with Log4Php and I noticed that there is a minor
> >>>>> issue with the example config.xml on the following page:
> >>>>>
> >>>>> http://logging.apache.org/log4php/quickstart.html
> >>>>>
> >>>>> The sample config.xml contains the following line:
> >>>>>
> >>>>> <param name="conversionPattern" value="%date [%logger]
> >>>>> %message%newline" />
> >>>>>
> >>>>> It should be as follows:
> >>>>>
> >>>>> <param name="conversionPattern" value="%d [%l] %m%n" />
> >>>>>
> >>>>> PS. at first I tried to e-mail Alvero Carrasco (alvero at apache.org
> )
> >>>>> but the given e-mail address does not exist, so this site seems not
> to be up
> >>>>> to date either:
> >>>>>
> >>>>> http://logging.apache.org/log4php/team-list.html
> >>>>>
> >>>>> --
> >>>>> Üdvözlettel / Best Regards
> >>>>>
> >>>>> Gabor Dicso | +36308237933 | gabor.di...@inepex.com
> >>>>> http://inepex.com | IT Development and Location Based Services
> >>>>> http://inetrack.com | The customizable fleet tracking platform
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Üdvözlettel / Best Regards
> >>>
> >>> Gabor Dicso | +36308237933 | gabor.di...@inepex.com
> >>> http://inepex.com | IT Development and Location Based Services
> >>> http://inetrack.com | The customizable fleet tracking platform
> >>>
> >>
> >
> >
> >
> > --
> > Üdvözlettel / Best Regards
> >
> > Gabor Dicso | +36308237933 | gabor.di...@inepex.com
> > http://inepex.com | IT Development and Location Based Services
> > http://inetrack.com | The customizable fleet tracking platform
> >
> >
> >
> >
> > --
> > http://www.grobmeier.de
> > https://www.timeandbill.de
>



-- 
Üdvözlettel / Best Regards

Gabor Dicso | +36308237933 | gabor.di...@inepex.com
http://inepex.com | IT Development and Location Based Services
http://inetrack.com | The customizable fleet tracking platform

Reply via email to