Re: multi-dimensional session array

2014-06-15 Thread Ivan Habunek
Hi Rob, Sorry, but that is not currently possible. I created an issue for this: https://issues.apache.org/jira/browse/LOG4PHP-220 I'm considering the following syntax: %session{auth.username} Regards, Ivan On 13 June 2014 20:28, Rob Litten wrote: > Does anyone know if I can pass into the co

Re: Multiple Loggers Using Config Array

2014-01-01 Thread Ivan Habunek
There's an error in your config file. The "classALogger" should be under "loggers". So, instead of this: 'classALogger' => array('level' => 'DEBUG', 'appenders' => array('classAAppender')), You need this: 'loggers' => array( 'classALogger' => array('level' => 'DEBUG', 'appenders' => array('cl

Re: No logging to secondary appender

2013-10-27 Thread Ivan Habunek
Hi Jamie, You're not feeding your config file to log4php. You need: Logger::configure("config.xml"); Add that after require_once. Just tested on my machine and it works. Actually, I'm not sure how you manage to get anything in your default log file. :-) The default config just writes to stdout.

Re: Composer fails to install - 503 error

2013-06-11 Thread Ivan Habunek
I think there was some issue with the Apache git server so it might have been offline for a while. It works for me now, so it should for you also. Unfortunately, the git server can be a bit unreliable at times. As a workaround, you can install from the github mirror. Instead of doing this: {

Re: Configuration in PHP format

2013-03-14 Thread Ivan Habunek
On 14 March 2013 09:04, Gunnar Lindholm wrote: > Yes, its acctually a simple case. > > I want to be able to load two different loggers > > $loggerFoo = Logger::getLogger('foo'); > $loggerBar = Logger::getLogger('bar'); > > and they should write to different files. > > I have a file with rootLogger

Re: Configuration in PHP format

2013-03-13 Thread Ivan Habunek
On 13 March 2013 20:49, Gunnar Lindholm wrote: > I wonder if you could add some more complex example of a configuration > made in PHP? > > It is not obvious how to write a configuration with loggers that you > give explicit names. I'm aware of that, and have been meaning to write up better exampl

Re: custom file:line column entries

2013-03-06 Thread Ivan Habunek
On 5 March 2013 19:05, David Coombes wrote: > I have a method in a class that calls Logger::info() The issue is the > file:line column in the html appender will always report my helper method > and not the calling file:line. Using php's debug_backtrace I can get the > calling file:line but can't s

Re: Two appenders

2013-02-19 Thread Ivan Habunek
On 19 February 2013 21:23, Jan Galler wrote: > Hi everyone, Hi Jan! > I'm trying to create a logger that covers two outputs. The first one is > a database (so every stuff should go there). And now I try to add an > appender that sends every log-event with an level higher 'warn'. > > But I really

Re: File logging is working but not Console logging!

2013-01-23 Thread Ivan Habunek
On 23 January 2013 13:43, James Pittman wrote: > Interesting. If you do just > print "Hello World"; > > It will print to console and browser - I just assumed that was stdout. Print and echo actually write to php://output stream, and not php://stdout. Frankly, I'm not sure exactly what happens un

Re: File logging is working but not Console logging!

2013-01-22 Thread Ivan Habunek
On 23 January 2013 03:52, James Pittman wrote: > Yes that was it. I was trying to output it to a browser. I shouldn't have > said "console stdout" - I just assumed that if it would output to a console, > it would output to a browser... but it must check to see whether you're in a > browser or CL

Re: File logging is working but not Console logging!

2013-01-22 Thread Ivan Habunek
On 22 January 2013 22:36, James Pittman wrote: > OK I fixed that, but I'm still not getting any console stdout. That's strange. Works for me... http://i.imgur.com/22BB8Ly.png Note that the console appender output will not be seen in browser, only via CLI. Just noticed this is not in the docs. :)

Re: File logging is working but not Console logging!

2013-01-22 Thread Ivan Habunek
On 22 January 2013 22:26, James Pittman wrote: > Using the examples in the instructions, I created a config file and PHP > file. I am getting the expected logging in the myLog.log, but nothing in my > STDOUT. If I do NOT include the config.xml file, I DO get logging in > STDOUT. Any ideas? Yes

Re: Verifying the git repo

2012-12-02 Thread Ivan Habunek
On 30 November 2012 17:07, Vladimír Gorej wrote: > I did not find any problems with the repo, except already known problem with > the duplicate tags. I reviewed some of the history commits with 'git gui' > tool and everything seemed fine. Yeah, i did the same using tortoise-git, and all seems wel

Re: Verifying the git repo

2012-11-30 Thread Ivan Habunek
Heads up, If no problems are found by Monday (T+3) then I will notify infra to continue with the migration process. Please take a little time to review the repo and reply to the list if you have any objections or remarks. Regards, Ivan On 30 November 2012 08:09, Ivan Habunek wrote: > Hi

Re: SVN going to readonly mode

2012-11-28 Thread Ivan Habunek
On 28 November 2012 20:52, Vladimír Gorej wrote: > Sure, if it is on git, I will be as active as I can. Btw I have been working > with git for 2 years now, so if anybody have a problem or a question > regarding git, I will be more than happy to help. That's great. We'll discuss the workflow in mo

Re: SVN going to readonly mode

2012-11-28 Thread Ivan Habunek
On 28 November 2012 19:55, Vladimír Gorej wrote: > We are very glad to hear that ;] Thanks a lot. Hey, I hope you will be on-board for the push towards v3.0. Regards, Ivan

SVN going to readonly mode

2012-11-28 Thread Ivan Habunek
Hi all, I was notified by infra, that the log4php SVN repository is about to switch to readonly mode so that migration to git can get started. Once the migration is complete, we will start to operate on the new git repository at: https://git-wip-us.apache.org/repos/asf I will post any news as th

Re: Moving log4php to git

2012-11-12 Thread Ivan Habunek
On 12 November 2012 14:36, Michael Sole wrote: > Yes I am aware, my point is that it would be counter intuitive. People would > expect svn use and while git it is the new golden child it doesn't really > offer much more in the way of advantages over svn. Moving repositories is a > real pain. >

Re: Moving log4php to git

2012-11-10 Thread Ivan Habunek
On 10 November 2012 16:47, Michael Sole wrote: > Isn't subversion an apache project? Yes it is. What's your point? :) Regards, Ivan

Moving log4php to git

2012-11-09 Thread Ivan Habunek
Hi all, I have submitted a ticket to move log4php to git. I believe this might be a step in the right direction for attracting more submissions, since I have encountered several people willing to contribute, but reluctant with using svn. The infra ticket is here: https://issues.apache.org/jira/br

Re: Cannot find superglobal variable $_SERVER

2012-11-07 Thread Ivan Habunek
On 7 November 2012 14:59, Robert Schneider wrote: > Yes, variables_order is set to EGPCS. Could I savely change the order, in > hope that it might work then? Hm, I haven't come across this problem. Just did a quick test locally on windows/apache 2.2/php 5.4.8. My variables_order is set to GPCS by

Re: Cannot find superglobal variable $_SERVER

2012-11-07 Thread Ivan Habunek
On 7 November 2012 13:50, Robert Schneider wrote: > I have found out now that the PHP behaviour seems to be odd. For some reason > the $_SERVER variable is Null. If I put an > $any_variable_name_that_you_dont_need = $_SERVER; > at the begin of the script $_SERVER is set and the warning doesn't app

Re: Log4Php Quickstart, config.xml minor issue

2012-11-02 Thread Ivan Habunek
n'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-

ApacheCon meetup

2012-10-24 Thread Ivan Habunek
I will be at ApacheCon EU in Sinsheim for the full duration of the conference. If anybody is wants to meet up, I'd be more than happy. Just give me a holler via email or twitter @ihabunek. Regards, Ivan

Re: Log4php for Magento

2012-10-15 Thread Ivan Habunek
On 15 October 2012 17:56, Praxi Support wrote: > there is Apache Log4php wrapper for Magento - > http://www.magentocommerce.com/magento-connect/catalog/product/view/id/14597/ Thanks Alex. We really should make a page with links to various integrations for log4php. Regards, Ivan

[ANNOUNCE] Apache log4php 2.1.0 released

2012-10-13 Thread Ivan Habunek
Dear all, The Apache log4php team is pleased to announce the release of Apache log4php 2.3.0. Significant changes in this release include: * Ability to override the default renderer. * New experimental appender: FirePHP * Many improvemetns to LoggerLayoutPatern (support for long conversion words,

Re: Using log4php with Apache httpd's access_log and/or error_log?

2012-06-16 Thread Ivan Habunek
Hi Raj, Can you provide the config file you're using. Also, which OS? Regards, Ivan On 15 June 2012 23:05, Raj, Pavan (CCI-Atlanta) wrote: > I am trying to use log4php with a PHP application that runs on Apache 2.2.3. > When the script is executed using CLI, the log4php bits are invoked > corre

Re: Convert to array from XML

2012-06-08 Thread Ivan Habunek
Somehow I totally missed this discussion. I was away at the time, and missed it when I got back... First, Michael, there is a passage in the docs: http://logging.apache.org/log4php/docs/configuration.html which says: -- Hint: to translate a XML or properties configuration file to PHP, run the fol

[ANN] Apache log4php 2.2.1 released

2012-02-19 Thread Ivan Habunek
Dear all, The Apache log4php team is pleased to announce the release of Apache log4php 2.2.1. This is a maintenance release which fixes several important bugs and features yet another update to the web site design. The full changelog can be found at: http://logging.apache.org/log4php/changelog.h

Re: INI_SCANNER_RAW change

2012-02-15 Thread Ivan Habunek
Hi guys, The 2.2.1 release is being voted on on the dev mailing list: http://markmail.org/thread/ictidelq5selh4tm This issue has been resolved by removing the INI_SCANNER_RAW flag. You are welcome to check it out and give your vote. Regards, Ivan On 28 January 2012 12:37, Marcelo Gornstein w

Re: Re: INI_SCANNER_RAW change

2012-01-28 Thread Ivan Habunek
Hi, Since it turns out that log4php v2.2 does not parse INI config files when using PHP 5.2.x we will be going ahead with a bugfix release quite soon. It will take a little time to make sure we're not breaking anything else by doing. I have created an issue for this in our tracker: https://issues

Re: Re: INI_SCANNER_RAW change

2012-01-28 Thread Ivan Habunek
On 28 January 2012 12:17, Sven Rautenberg wrote: > I really hate to say it, but the third optional parameter to > parse_ini_file() is a PHP 5.3-only feature. See changenotes section of > the docs page: http://de.php.net/manual/en/function.parse-ini-file.php > > I assume you created duplicate beha

Re: INI_SCANNER_RAW change

2012-01-28 Thread Ivan Habunek
On 28 January 2012 00:10, Marcelo Gornstein wrote: > Hello Ivan, > > Thank you very much for your quick response! > > Is the decision of deprecating the ini files final / irrevocable? > > INI files support will not be removed for the foreseeable future so you can continue using them if you're mor

Re: INI_SCANNER_RAW change

2012-01-27 Thread Ivan Habunek
On 27 January 2012 21:55, Marcelo Gornstein wrote: > > > Is this change irreversible? Is there anything that can be done to > restore this behaviour? It seems to me that it is a benefit to expect > the log4php ini files behave exactly as the php ini files (or it > should be documented otherwise

Re: Request to add project to "Who uses log4php"

2012-01-13 Thread Ivan Habunek
Here's a preview: http://people.apache.org/~ihabunek/log4php/ Regards, Ivan On 13 January 2012 14:36, Marcelo Gornstein wrote: > Not a problem. Thanks for your reply, Ivan. > > Cheers, > > On Fri, Jan 13, 2012 at 10:18 AM, Ivan Habunek > wrote: > > Sorry it took

Re: Request to add project to "Who uses log4php"

2012-01-13 Thread Ivan Habunek
Sorry it took us so long to reply. We will add you to the "who uses" section for the next release. Regards, Ivan On 20 December 2011 21:26, Marcelo Gornstein wrote: > Hello, > > I would like to add the following projects to the list of log4php projects: > > * Ding, a Dependency Injection, AOP,

[ANNOUNCE] Apache log4php 2.2.0 released

2011-12-20 Thread Ivan Habunek
Dear all, The Apache log4php team is pleased to announce the release of Apache log4php 2.2.0. Significant changes in this release include: * a full rewrite of the configuration logic which greatly improves error reporting * inline configuration using PHP arrays * a new web site with better doc

Re: Trying to set filter from ini config

2011-12-14 Thread Ivan Habunek
Hi Manasi, On 15 December 2011 00:23, Manasi Sahasrabudhe wrote: > I recently upgraded from 2.0 to 2.1 version of log4php. Well, 2.2. will be out before new year. :-) > I have a log4php.ini like this, > log4php.rootLogger=WARN, appender1, appender2, Why do you have myappender surrounded with

Re: Trying to set filter from ini config

2011-12-09 Thread Ivan Habunek
On 8 December 2011 00:16, Manasi Sahasrabudhe wrote: > We already have bunch of configs set in ini so I was wondering if I could > use thats already in place. Sure, we'll keep supporting ini config files, but any new features that are added may not be configurable through ini. > Also, I am worki

Re: Trying to set filter from ini config

2011-12-07 Thread Ivan Habunek
      foreach ($allAppenders as $appender) { >                     $appender->clearFilters(); >                     $appender->addFilter($rxFilter); >                 } > > On Wed, Dec 7, 2011 at 3:01 PM, Ivan Habunek wrote: >> >> Hi Manasi, >> >>

Re: Trying to set filter from ini config

2011-12-07 Thread Ivan Habunek
Hi Manasi, Filters are not configurable using the ini configuration file. You have to use XML configuration for that. Please have a look at the docs: http://logging.apache.org/log4php/docs/appender/filter.html Best regards, Ivan On 7 December 2011 23:43, Manasi Sahasrabudhe wrote: > > > On W

Re: Can't find autoload

2011-09-09 Thread Ivan Habunek
On 8 September 2011 21:31, Michael Sole wrote: > We had previously used autoload but removed it and we are now using > spl_autoload. In development it works fine but in QA it throws this error. I > grepped for autoload but could not find any instance in any file. Is there > anyway to determine wha

Re: Can not access object from extended class

2011-08-31 Thread Ivan Habunek
On 31.8.2011. 19:09, Michael Sole wrote: Actually this is how I have it: http://pastebin.com/1Z1EcQcZ And the error is: Fatal error: Call to a member function info() on a non-object in And in this case it would be on this line: $this->log->info("From within"); The example you provided works o

Re: Can not access object from extended class

2011-08-31 Thread Ivan Habunek
On 31.8.2011. 18:46, Michael Sole wrote: I have an application that uses a base Database class and then each class extends that. This gives easy database access to all the classes and insures that proper logging is maintain by all my developers. If I create a new instance of the database class d

Re: Multiple servers writing to the same file

2011-08-17 Thread Ivan Habunek
This is something I had thought was changed when we upgraded to 5.3 several months ago. I have disabled magic quotes and everything is now working as expected. Regards, Mike -Original Message- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Wednesday, August 17, 2011 12:23

Re: Multiple servers writing to the same file

2011-08-17 Thread Ivan Habunek
tutorials? :-) Regards, Ivan On 17 August 2011 13:44, Michael Sole wrote: > The array is empty: array(0) { } > > -Original Message- > From: Ivan Habunek [mailto:ivan.habu...@gmail.com] > Sent: Wednesday, August 17, 2011 3:54 AM > To: Log4PHP User > Subject: Re: Multi

Re: unsubscribe

2011-08-17 Thread Ivan Habunek
To unsubscribe, please send an email to: log4php-user-unsubscr...@logging.apache.org Regards, Ivan On 17 August 2011 10:04, Achim Abeling wrote: >

Re: Multiple servers writing to the same file

2011-08-17 Thread Ivan Habunek
ving errors. At this point > someone will dig through the log4php code to try and figure out whats going > on. > > > > > > I added logging to the append function and it wasn’t even making it there. > > > > Like I said it works on Ubuntu so there is some weird in

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
ven putting in a echo "hi"; nothing shows up. > > Could it be failing on parsing the xml config file? > > -----Original Message- > From: Ivan Habunek [mailto:ivan.habu...@gmail.com] > Sent: Tuesday, August 16, 2011 2:31 PM > To: Log4PHP User > Subject: Re: Multi

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
ome weirdness with it. I am going to ask my managed host for help and try it on an Ubuntu machine. Any other suggestions would be helpful. -Original Message- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Tuesday, August 16, 2011 2:20 PM To: Log4PHP User Subject: Re: Multiple se

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
that calls it right? I pastebined my code for reference http://pastebin.com/r9XVataM But really I just copied and pasted it. -Original Message- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Tuesday, August 16, 2011 2:13 PM To: Log4PHP User Subject: Re: Multiple servers writi

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
other PHP packages or configurations required to make this be able to write files. *From:*Ivan Habunek [mailto:ivan.habu...@gmail.com] *Sent:* Tuesday, August 16, 2011 9:34 AM *To:* Log4PHP User *Subject:* Re: Multiple servers writing to the same file That should work fine because the file is locked

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
og file now I am working on > the second example and it should be creating a myLog.log file but nothing is > happening and I see no errors in the logs. > > ** ** > > It’s probably something pretty basic, please help.**** > > ** ** > > Thanks > > ** ** >

Re: Multiple servers writing to the same file

2011-08-16 Thread Ivan Habunek
That should work fine because the file is locked each time before writing to it (exclusive lock). I haven't tested this on a NAS setup, but I have tested it by having two processes log continuously to the same log file on a local disk and this works ok. Let us know if you run into any problems.

Re: Syslog appender bug?

2011-08-12 Thread Ivan Habunek
Hi Chris, I can confirm that this is a bug. The facility cannot be configured using the strings as specified in the documentation. I will open an issue and we will fix this. In the meantime, you can use the integer values of the PHP constants used for syslog facility, as listed here: http://www.p

Re: LoggerAppenderFile on Windows

2011-07-25 Thread Ivan Habunek
Our documentation has a bug. :) Thanks for reporting this, Kev. We'll fix the docs. Also, we're working on a new and improved configuration parser which will report any errors properly instead of failing silently like what happened to you. Regards, Ivan On 25 July 2011 18:41, krazykev wrote:

[ANN] Apache log4php 2.1.0 released

2011-07-13 Thread Ivan Habunek
Dear all, The Apache log4php team is pleased to announce the release of Apache log4php 2.1.0. Significant changes in this release include: * a new logging level: trace * a new appender: MongoDB (thanks to Vladimir Gorej) * a plethora of bugfixes and other code improvements * most of the site

Re: File name in log file

2011-06-10 Thread Ivan Habunek
Yes you can, but you have to do it manually in your wrapper class. %F and %L will always return the values from where the logging function was called. In your case the wrapper. If you remove %F and %L from the pattern, you can append the location info you need manually. Something like this: --beg

Re: Converting object dumping method to log4php

2011-05-15 Thread Ivan Habunek
On 14.5.2011. 14:11, Oliver Salzburg wrote: I'm currently in the process of moving from our own proprietary logging solution to log4php in one of our projects. Our own solution has a helper method which I appended to this mail. The purpose of the method is to write the contents of a variable (and

Re: conversion pattern problem

2011-01-07 Thread Ivan Habunek
On 7.1.2011. 13:13, Christian Grobmeier wrote: Ivan, is this what you committed yesterday? Christian No, I just fixed a bug where the default conversionPattern would not be used when no conversionPattern is specified. I can see one problem in the date format used in the conversion pattern: %