Return-Path: Delivered-To: apmail-logging-log4php-dev-archive@www.apache.org Received: (qmail 69663 invoked from network); 31 Aug 2010 20:03:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 20:03:48 -0000 Received: (qmail 32420 invoked by uid 500); 31 Aug 2010 20:03:48 -0000 Delivered-To: apmail-logging-log4php-dev-archive@logging.apache.org Received: (qmail 32360 invoked by uid 500); 31 Aug 2010 20:03:47 -0000 Mailing-List: contact log4php-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4PHP Dev" List-Id: Delivered-To: mailing list log4php-dev@logging.apache.org Received: (qmail 32353 invoked by uid 99); 31 Aug 2010 20:03:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 20:03:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 20:03:40 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OqX39-0002F9-RE for log4php-dev@logging.apache.org; Tue, 31 Aug 2010 13:03:19 -0700 Message-ID: <29587118.post@talk.nabble.com> Date: Tue, 31 Aug 2010 13:03:19 -0700 (PDT) From: zalex06 To: log4php-dev@logging.apache.org Subject: Re: Problem with utilisation of multiple file_properties In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: zalex06@hotmail.fr References: <29581278.post@talk.nabble.com> <29582613.post@talk.nabble.com> <29583038.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Ok, but unfortunately I have until used this solution (see my first post) :( An other idea ? Christian grobmeier wrote: > >> It is a good solution to do in each function $logger = >> Logger::getRootLogger(); ? > > thats ok. Logger::getRootLogger will always return the same logger > instance. So you can do something like that: > > Logger:configure(...); > > function blub() { > $logger = Logger::getRootLogger(); > $logger->doSomething(); > } > > function blub2() { > $logger = Logger::getRootLogger(); > $logger->doSomething(); > } > > Did that help you? > Christian > > -- View this message in context: http://old.nabble.com/Problem-with-utilisation-of-multiple-file_properties-tp29581278p29587118.html Sent from the Log4php - Dev mailing list archive at Nabble.com.