I think I have done what was suggested but there is a catch.
I decided to go for a parallel log4j repository for more manageability but
retained the log4j Logger. I didn't extend it or wrap it. ( e.g ) JBoss uses
its own repository to take care of multiple web applications.
The problem is that s
:46:52 +0100
Bender Heri wrote:
I don't know. You have to try if the log4j.xml can be omitted.
Heri
-Original Message-
From: Mohan.Radhakrishnan [mailto:moh...@fss.co.in]
Sent: Tuesday, November 02, 2010 2:39 PM
To: log4j-user@logging.apache.org
Subject: RE: Extending Logger
Yes
I don't know. You have to try if the log4j.xml can be omitted.
Heri
> -Original Message-
> From: Mohan.Radhakrishnan [mailto:moh...@fss.co.in]
> Sent: Tuesday, November 02, 2010 2:39 PM
> To: log4j-user@logging.apache.org
> Subject: RE: Extending Logger
>
>
Yes. I am responding to your suggestion.
The setup performance is not very important. The runtime performance though
is. If I setup everything programmatically log4j.xml is not at all needed ?
--
View this message in context:
http://old.nabble.com/Extending-Logger-tp30018462p30113852.html
Sent
you set up your logger
univers, the former should not concern, or does it?
Heri
> -Original Message-
> From: Mohan.Radhakrishnan [mailto:moh...@fss.co.in]
> Sent: Tuesday, November 02, 2010 2:26 PM
> To: log4j-user@logging.apache.org
> Subject: RE: Extending Logger
>
>
So this is what I understand.
If I have too many appender sections in the XML then one appender for a
logger is created by log4j.
Instead of that I can have one appender and a custom logger for each log
file.
Both could be equivalent as far as performance is concerned. Am I right ?
--
View th
.@fss.co.in]
> Sent: Tuesday, November 02, 2010 1:26 PM
> To: log4j-user@logging.apache.org
> Subject: RE: Extending Logger
>
>
> I wanted to associate the logger file with each Logger instead of the
> Appender. I have a setFile/getFile in the Logger that I plan to call using
>
I wanted to associate the logger file with each Logger instead of the
Appender. I have a setFile/getFile in the Logger that I plan to call using
my custom Appender so that the log message is written to the file associated
with the Logger.
Reasons :
1. We have two many appender sections in the XM
What is the reason you want extend the Logger?
Heri
> -Original Message-
> From: Mohan.Radhakrishnan [mailto:moh...@fss.co.in]
> Sent: Thursday, October 21, 2010 1:22 PM
> To: log4j-user@logging.apache.org
> Subject: Extending Logger
>
>
> The complete Log4J manual discourages us from e
I don't have a way to put my custom logger in the log4j repository so that it
is used in place of the log4j Logger.
--
View this message in context:
http://old.nabble.com/Extending-Logger-tp30018462p3044.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
-
I have wrapped log4j's Logger in a 'custom' logger. The custom logger is my
logger. The FQCN of my logger is set in the 'logger' element in the XML.
I have an extra parameter to set in my logger that is not in Log4j's logger.
So I think that I have to configure this when
log4j calls void selec
log4j-user@logging.apache.org
cc
Subject
Re: Extending Logger
Since extension of Logger is discouraged I wrap it.
I think the configuration can be set like this.
Thanks,
Mohan
--
View this message in context:
http://old.nabble.com/Extending-Logger-tp30018462p30085722.html
Sent from the Log
Since extension of Logger is discouraged I wrap it.
I think the configuration can be set like this.
Thanks,
Mohan
--
View this message in context:
http://old.nabble.com/Extending-Logger-tp30018462p30085722.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
-
e. A wrong note played
with conviction is interpretation."
"Mohan.Radhakrishnan"
10/29/2010 08:28 AM
Please respond to
"Log4J Users List"
To
log4j-user@logging.apache.org
cc
Subject
Re: Extending Logger
Solved this.
Is there a way to get my custom logge
Solved this.
Is there a way to get my custom logger that log4J has configured and set
some values using reflection ? The API does not seem to return the correct
type. It returns Logger always and not CustomLogger.
--
View this message in context:
http://old.nabble.com/Extending-Logger-tp300184
15 matches
Mail list logo