From: <gm...@br...> - 2007-09-26 09:21:02
|
Hi, know somebody how can I get the properties of a logger i.e. name of used logfile? In log4perl manual I don't fint any hint. Example: $logger = Log::Log4perl->get_logger('loggername'); I miss something like: %properties = $logger->get_logger_properties(); $current_logfile = $properties{filename}; Thanks Gerd ----------------------------------------------------- Gerd Mucha BR-Online Rundfunkplatz 1 80300 München Tel: 089/5900 16024 Fax: 089/5900 16000 gm...@br... ----------------------------------------------------- |
From: Berg, E. <eri...@le...> - 2007-09-26 17:38:44
|
I had asked about his a little while ago, Gerd. The answer was that that information isn't kept. For one thing, it could be that the configuration was derived or modified programatically. Nonethless, I think that there are times when it would be very helpful to have a path/filename for the config file. One of these days, if I get some time........ Eric. -----Original Message----- From: log4perl-devel-bounces=40lists.sourceforge.net =5Bmailto:log4perl-devel-bounces=40lists.sourceforge.net=5D On Behalf Of gm_post=40br-online.de Sent: Wednesday, September 26, 2007 5:21 AM To: log4perl-devel=40lists.sourceforge.net Subject: =5Blog4perl-devel=5D Logger Properties Hi, know somebody how can I get the properties of a logger i.e. name of used logfile? In log4perl manual I don't fint any hint. Example: =24logger =3D Log::Log4perl->get_logger('loggername'); I miss something like: %properties =3D =24logger->get_logger_properties(); =24current_logfile =3D =24properties=7Bfilename=7D; Thanks Gerd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - - - - - This message is intended only for the personal and confidential use of the = designated recipient(s) named above. If you are not the intended = recipient of this message you are hereby notified that any review, = dissemination, distribution or copying of this message is strictly = prohibited. This communication is for information purposes only and = should not be regarded as an offer to sell or as a solicitation of an = offer to buy any financial product, an official confirmation of any = transaction, or as an official statement of Lehman Brothers. Email = transmission cannot be guaranteed to be secure or error-free. Therefore, = we do not represent that this information is complete or accurate and it = should not be relied upon as such. All information is subject to change = without notice. -------- IRS Circular 230 Disclosure: Please be advised that any discussion of U.S. tax matters contained within = this communication (including any attachments) is not intended or written = to be used and cannot be used for the purpose of (i) avoiding U.S. tax = related penalties or (ii) promoting, marketing or recommending to another = party any transaction or matter addressed herein. |
From: Mike S. <m...@pe...> - 2007-09-27 07:29:44
|
On Wed, 26 Sep 2007, Berg, Eric wrote: > The answer was that that information isn't kept. For one thing, it > could be that the configuration was derived or modified > programatically. That's not accurate. Of course it's kept, otherwise the file appender wouldn't know what the name of the file is, right? :) To find the name of the file the file appender is using, first obtain a reference to the file appender. If you have a configuration like log4perl.category.Bar.Twix = WARN, Logfile log4perl.appender.Logfile = Log::Log4perl::Appender::File log4perl.appender.Logfile.filename = test.log ... then find the "Logfile" appender via my $app = Log::Log4perl->appender_by_name("Logfile"); and to obtain the name of the logfile it's using, call its 'filename' method: print $app->filename(), "\n"; -- Mike Mike Schilli m...@pe... > > Nonethless, I think that there are times when it would be very helpful > to have a path/filename for the config file. One of these days, if I > get some time........ > > Eric. > > -----Original Message----- > From: log...@li... > [mailto:log...@li...] On Behalf Of > gm...@br... > Sent: Wednesday, September 26, 2007 5:21 AM > To: log...@li... > Subject: [log4perl-devel] Logger Properties > > Hi, > > know somebody how can I get the properties of a logger i.e. name of used > logfile? In log4perl manual I don't fint any hint. > > Example: > > $logger = Log::Log4perl->get_logger('loggername'); > > I miss something like: > > %properties = $logger->get_logger_properties(); $current_logfile = > $properties{filename}; > > Thanks Gerd > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. > > -------- > IRS Circular 230 Disclosure: > Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > |
From: Berg, E. <eri...@le...> - 2007-09-27 13:03:07
|
Well, that's good news, Mike, but what about the following did I not understand? When you said =22isn't stored usually=22, I guess you meant that, if there a file is used, it is. This would be nice to have in the docs. Thanks. -Eric. > -----Original Message----- > From: Mike Schilli =3D5Bmailto:m=3D40perlmeister.com=3D5D > Sent: Thursday, June 28, 2007 7:54 PM > To: Berg, Eric > Cc: log4perl-devel=3D40lists.sourceforge.net > Subject: Re: =3D5Blog4perl-devel=3D5D When a missing config file > > On Thu, 28 Jun 2007, Berg, Eric wrote: > > > I've been looking for a way to get l4p to tell me where the config=3D20 > > under which it's running comes from. Essentially, I'd like to have=3D20 > > a method that would return the full path to the config file that=3D20 > > it's currently using. > > > > Obviously, there are complications, such as those relating to=3D20 > > programatic configuration subsequent to loading configs from a file, > > in-line, and config (ini) files, but I could find nowhere that the=3D20 > > file name passed in to init() is retrievable. > > The name of the file isn't stored usually, since you can not only use=3D20 > a file but a string, a hashref, an URL, etc. to initialize L4p. > > Since you're calling init() in the first place, wouldn't it be easier=3D20 > to store the filename in your application instead? > > -- Mike=20 -----Original Message----- From: Mike Schilli =5Bmailto:m=40perlmeister.com=5D=20 Sent: Thursday, September 27, 2007 3:29 AM To: Berg, Eric Cc: gm_post=40br-online.de; log4perl-devel=40lists.sourceforge.net Subject: Re: =5Blog4perl-devel=5D Logger Properties On Wed, 26 Sep 2007, Berg, Eric wrote: > The answer was that that information isn't kept. For one thing, it=20 > could be that the configuration was derived or modified=20 > programatically. That's not accurate. Of course it's kept, otherwise the file appender wouldn't know what the name of the file is, right? :) To find the name of the file the file appender is using, first obtain a reference to the file appender. If you have a configuration like log4perl.category.Bar.Twix =3D WARN, Logfile log4perl.appender.Logfile =3D Log::Log4perl::Appender::File log4perl.appender.Logfile.filename =3D test.log ... then find the =22Logfile=22 appender via my =24app =3D Log::Log4perl->appender_by_name(=22Logfile=22); and to obtain the name of the logfile it's using, call its 'filename' method: print =24app->filename(), =22=5Cn=22; -- Mike Mike Schilli m=40perlmeister.com > > Nonethless, I think that there are times when it would be very helpful > to have a path/filename for the config file. One of these days, if I=20 > get some time........ > > Eric. > > -----Original Message----- > From: log4perl-devel-bounces=40lists.sourceforge.net > =5Bmailto:log4perl-devel-bounces=40lists.sourceforge.net=5D On Behalf = Of=20 > gm_post=40br-online.de > Sent: Wednesday, September 26, 2007 5:21 AM > To: log4perl-devel=40lists.sourceforge.net > Subject: =5Blog4perl-devel=5D Logger Properties > > Hi, > > know somebody how can I get the properties of a logger i.e. name of=20 > used logfile? In log4perl manual I don't fint any hint. > > Example: > > =24logger =3D Log::Log4perl->get_logger('loggername'); > > I miss something like: > > %properties =3D =24logger->get_logger_properties(); =24current_logfile = =3D=20 > =24properties=7Bfilename=7D; > > Thanks Gerd > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 > - - - - - - - - - > > This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. > > -------- > IRS Circular 230 Disclosure: > Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein. > > > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Microsoft Defy all challenges.=20 > Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > log4perl-devel mailing list > log4perl-devel=40lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - - - - - This message is intended only for the personal and confidential use of the = designated recipient(s) named above. If you are not the intended = recipient of this message you are hereby notified that any review, = dissemination, distribution or copying of this message is strictly = prohibited. This communication is for information purposes only and = should not be regarded as an offer to sell or as a solicitation of an = offer to buy any financial product, an official confirmation of any = transaction, or as an official statement of Lehman Brothers. Email = transmission cannot be guaranteed to be secure or error-free. Therefore, = we do not represent that this information is complete or accurate and it = should not be relied upon as such. All information is subject to change = without notice. -------- IRS Circular 230 Disclosure: Please be advised that any discussion of U.S. tax matters contained within = this communication (including any attachments) is not intended or written = to be used and cannot be used for the purpose of (i) avoiding U.S. tax = related penalties or (ii) promoting, marketing or recommending to another = party any transaction or matter addressed herein. |
From: Mike S. <m...@pe...> - 2007-09-27 17:21:02
|
On Thu, 27 Sep 2007, Berg, Eric wrote: > Well, that's good news, Mike, but what about the following did I not > understand? The mail below referred to the configuration file name, while the previous mail referred to the output file name the file appender uses. Two entirely different animals! :) -- Mike Mike Schilli m...@pe... > This would be nice to have in the docs. > > Thanks. > > -Eric. > > > -----Original Message----- > > From: Mike Schilli =5Bmailto:m=40perlmeister.com=5D > > Sent: Thursday, June 28, 2007 7:54 PM > > To: Berg, Eric > > Cc: log4perl-devel=40lists.sourceforge.net > > Subject: Re: =5Blog4perl-devel=5D When a missing config file > > > > On Thu, 28 Jun 2007, Berg, Eric wrote: > > > > > I've been looking for a way to get l4p to tell me where the > config=20 > > > under which it's running comes from. Essentially, I'd like to > have=20 > > > a method that would return the full path to the config file that=20 > > > it's currently using. > > > > > > Obviously, there are complications, such as those relating to=20 > > > programatic configuration subsequent to loading configs from a file, > > > > in-line, and config (ini) files, but I could find nowhere that > the=20 > > > file name passed in to init() is retrievable. > > > > The name of the file isn't stored usually, since you can not only > use=20 > > a file but a string, a hashref, an URL, etc. to initialize L4p. > > > > Since you're calling init() in the first place, wouldn't it be > easier=20 > > to store the filename in your application instead? > > > > -- Mike > > -----Original Message----- > From: Mike Schilli [mailto:m...@pe...] > Sent: Thursday, September 27, 2007 3:29 AM > To: Berg, Eric > Cc: gm...@br...; log...@li... > Subject: Re: [log4perl-devel] Logger Properties > > On Wed, 26 Sep 2007, Berg, Eric wrote: > > > The answer was that that information isn't kept. For one thing, it > > could be that the configuration was derived or modified > > programatically. > > That's not accurate. Of course it's kept, otherwise the file appender > wouldn't know what the name of the file is, right? :) > > To find the name of the file the file appender is using, first obtain a > reference to the file appender. If you have a configuration like > > log4perl.category.Bar.Twix = WARN, Logfile > log4perl.appender.Logfile = Log::Log4perl::Appender::File > log4perl.appender.Logfile.filename = test.log > ... > > then find the "Logfile" appender via > > my $app = Log::Log4perl->appender_by_name("Logfile"); > > and to obtain the name of the logfile it's using, call its 'filename' > method: > > print $app->filename(), "\n"; > > -- Mike > > Mike Schilli > m...@pe... > > > > > Nonethless, I think that there are times when it would be very helpful > > > to have a path/filename for the config file. One of these days, if I > > get some time........ > > > > Eric. > > > > -----Original Message----- > > From: log...@li... > > [mailto:log...@li...] On Behalf Of > > gm...@br... > > Sent: Wednesday, September 26, 2007 5:21 AM > > To: log...@li... > > Subject: [log4perl-devel] Logger Properties > > > > Hi, > > > > know somebody how can I get the properties of a logger i.e. name of > > used logfile? In log4perl manual I don't fint any hint. > > > > Example: > > > > $logger = Log::Log4perl->get_logger('loggername'); > > > > I miss something like: > > > > %properties = $logger->get_logger_properties(); $current_logfile = > > $properties{filename}; > > > > Thanks Gerd > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > - - - - - - - - - > > > > This message is intended only for the personal and confidential use of > the designated recipient(s) named above. If you are not the intended > recipient of this message you are hereby notified that any review, > dissemination, distribution or copying of this message is strictly > prohibited. This communication is for information purposes only and > should not be regarded as an offer to sell or as a solicitation of an > offer to buy any financial product, an official confirmation of any > transaction, or as an official statement of Lehman Brothers. Email > transmission cannot be guaranteed to be secure or error-free. > Therefore, we do not represent that this information is complete or > accurate and it should not be relied upon as such. All information is > subject to change without notice. > > > > -------- > > IRS Circular 230 Disclosure: > > Please be advised that any discussion of U.S. tax matters contained > within this communication (including any attachments) is not intended or > written to be used and cannot be used for the purpose of (i) avoiding > U.S. tax related penalties or (ii) promoting, marketing or recommending > to another party any transaction or matter addressed herein. > > > > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all challenges. > > Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > log4perl-devel mailing list > > log...@li... > > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. > > -------- > IRS Circular 230 Disclosure: > Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein. > > > |
From: Berg, E. <eri...@le...> - 2007-09-27 17:35:43
|
Uh...right. I think that was wishful thinking on my part...I still want to have that file name somewhere. Thanks. I knew there was a good explanation. Eric. -----Original Message----- From: Mike Schilli =5Bmailto:m=40perlmeister.com=5D=20 Sent: Thursday, September 27, 2007 1:21 PM To: Berg, Eric Cc: Mike Schilli; gm_post=40br-online.de; log4perl-devel=40lists.sourceforge.net Subject: RE: =5Blog4perl-devel=5D Logger Properties On Thu, 27 Sep 2007, Berg, Eric wrote: > Well, that's good news, Mike, but what about the following did I not=20 > understand? The mail below referred to the configuration file name, while the previous mail referred to the output file name the file appender uses. Two entirely different animals=21 :) -- Mike Mike Schilli m=40perlmeister.com > This would be nice to have in the docs. > > Thanks. > > -Eric. > > > -----Original Message----- > > From: Mike Schilli =3D5Bmailto:m=3D40perlmeister.com=3D5D > > Sent: Thursday, June 28, 2007 7:54 PM > > To: Berg, Eric > > Cc: log4perl-devel=3D40lists.sourceforge.net > > Subject: Re: =3D5Blog4perl-devel=3D5D When a missing config file > > > > On Thu, 28 Jun 2007, Berg, Eric wrote: > > > > > I've been looking for a way to get l4p to tell me where the > config=3D20 > > > under which it's running comes from. Essentially, I'd like to > have=3D20 > > > a method that would return the full path to the config file=20 > > > that=3D20 it's currently using. > > > > > > Obviously, there are complications, such as those relating to=3D20=20 > > > programatic configuration subsequent to loading configs from a=20 > > > file, > > > > in-line, and config (ini) files, but I could find nowhere that > the=3D20 > > > file name passed in to init() is retrievable. > > > > The name of the file isn't stored usually, since you can not only > use=3D20 > > a file but a string, a hashref, an URL, etc. to initialize L4p. > > > > Since you're calling init() in the first place, wouldn't it be > easier=3D20 > > to store the filename in your application instead? > > > > -- Mike > > -----Original Message----- > From: Mike Schilli =5Bmailto:m=40perlmeister.com=5D > Sent: Thursday, September 27, 2007 3:29 AM > To: Berg, Eric > Cc: gm_post=40br-online.de; log4perl-devel=40lists.sourceforge.net > Subject: Re: =5Blog4perl-devel=5D Logger Properties > > On Wed, 26 Sep 2007, Berg, Eric wrote: > > > The answer was that that information isn't kept. For one thing, it=20 > > could be that the configuration was derived or modified=20 > > programatically. > > That's not accurate. Of course it's kept, otherwise the file appender=20 > wouldn't know what the name of the file is, right? :) > > To find the name of the file the file appender is using, first obtain=20 > a reference to the file appender. If you have a configuration like > > log4perl.category.Bar.Twix =3D WARN, Logfile > log4perl.appender.Logfile =3D Log::Log4perl::Appender::File > log4perl.appender.Logfile.filename =3D test.log > ... > > then find the =22Logfile=22 appender via > > my =24app =3D Log::Log4perl->appender_by_name(=22Logfile=22); > > and to obtain the name of the logfile it's using, call its 'filename' > method: > > print =24app->filename(), =22=5Cn=22; > > -- Mike > > Mike Schilli > m=40perlmeister.com > > > > > Nonethless, I think that there are times when it would be very=20 > > helpful > > > to have a path/filename for the config file. One of these days, if=20 > > I get some time........ > > > > Eric. > > > > -----Original Message----- > > From: log4perl-devel-bounces=40lists.sourceforge.net > > =5Bmailto:log4perl-devel-bounces=40lists.sourceforge.net=5D On Behalf = Of=20 > > gm_post=40br-online.de > > Sent: Wednesday, September 26, 2007 5:21 AM > > To: log4perl-devel=40lists.sourceforge.net > > Subject: =5Blog4perl-devel=5D Logger Properties > > > > Hi, > > > > know somebody how can I get the properties of a logger i.e. name of=20 > > used logfile? In log4perl manual I don't fint any hint. > > > > Example: > > > > =24logger =3D Log::Log4perl->get_logger('loggername'); > > > > I miss something like: > > > > %properties =3D =24logger->get_logger_properties(); =24current_logfile = =3D=20 > > =24properties=7Bfilename=7D; > > > > Thanks Gerd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - - - - - This message is intended only for the personal and confidential use of the = designated recipient(s) named above. If you are not the intended = recipient of this message you are hereby notified that any review, = dissemination, distribution or copying of this message is strictly = prohibited. This communication is for information purposes only and = should not be regarded as an offer to sell or as a solicitation of an = offer to buy any financial product, an official confirmation of any = transaction, or as an official statement of Lehman Brothers. Email = transmission cannot be guaranteed to be secure or error-free. Therefore, = we do not represent that this information is complete or accurate and it = should not be relied upon as such. All information is subject to change = without notice. -------- IRS Circular 230 Disclosure: Please be advised that any discussion of U.S. tax matters contained within = this communication (including any attachments) is not intended or written = to be used and cannot be used for the purpose of (i) avoiding U.S. tax = related penalties or (ii) promoting, marketing or recommending to another = party any transaction or matter addressed herein. |
From: Jonathan S. <sw...@po...> - 2007-10-09 22:22:08
|
Let's say I've got several file appenders and a screen appender, and I want them to use the same layout. log4perl.appender.foofile = Log::Log4perl::Appender::File log4perl.appender.foofile.filename = logs/foo.log log4perl.appender.foofile.mode = append log4perl.appender.foofile.layout = PatternLayout log4perl.appender.foofile.layout.ConversionPattern = %d{dd/MMM/ yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n log4perl.appender.barfile = Log::Log4perl::Appender::File log4perl.appender.barfile.filename = logs/bar.log log4perl.appender.barfile.mode = append log4perl.appender.barfile.layout = PatternLayout log4perl.appender.barfile.layout.ConversionPattern = %d{dd/MMM/ yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n log4perl.appender.screen = Log::Log4perl::Appender::Screen log4perl.appender.screen.layout = PatternLayout log4perl.appender.screen.layout.ConversionPattern = %d{dd/MMM/ yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n This is rather tedious, to say the least. Is there any way to abbreviate this in the config file, e.g. to specify common properties of my standard appender and have the other appenders "inherit" from it? Or do I have to resort to configuring from a hash if I want this kind of expressiveness? Thanks Jon |
From: Mike S. <m...@pe...> - 2007-10-09 23:13:35
|
On Tue, 9 Oct 2007, Jonathan Swartz wrote: > Let's say I've got several file appenders and a screen appender, and > I want them to use the same layout. There's no inheritance available (yet), but variable substitution should ease your pain at least a little bit: http://log4perl.sourceforge.net/d/Log/Log4perl.html#bd632 -- Mike Mike Schilli m...@pe... > > log4perl.appender.foofile = Log::Log4perl::Appender::File > log4perl.appender.foofile.filename = logs/foo.log > log4perl.appender.foofile.mode = append > log4perl.appender.foofile.layout = PatternLayout > log4perl.appender.foofile.layout.ConversionPattern = %d{dd/MMM/ > yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n > > log4perl.appender.barfile = Log::Log4perl::Appender::File > log4perl.appender.barfile.filename = logs/bar.log > log4perl.appender.barfile.mode = append > log4perl.appender.barfile.layout = PatternLayout > log4perl.appender.barfile.layout.ConversionPattern = %d{dd/MMM/ > yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n > > log4perl.appender.screen = Log::Log4perl::Appender::Screen > log4perl.appender.screen.layout = PatternLayout > log4perl.appender.screen.layout.ConversionPattern = %d{dd/MMM/ > yyyy:HH:mm:ss.SS} [%p] %c - %m - %F:%L %P-%X{request_id}%n > > This is rather tedious, to say the least. Is there any way to > abbreviate this in the config file, e.g. to specify common properties > of my standard appender and have the other appenders "inherit" from > it? Or do I have to resort to configuring from a hash if I want this > kind of expressiveness? > > Thanks > Jon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > |