hello,
from a single log4j configuration file, does anyone know if
it is possible to instantiate only selected appenders using the
DOMConfigurator, as opposed to all those listed ?
thanks and regards,
andrew
_
Another possibly better way to address this problem is through a custom
ObjectRenderer.
At 05:09 PM 2/2/2005, OOMS DIRK wrote:
I would put AccountNo, SecretCode, etc in MDC key-value pairs and apply an
appropriate PatternLayout that leaves out the MDC fields you don't want to
show.
dirk
> -Or
Hi,
I am new to Log4J and chainsaw, and there is something I can't make
work.
I managed to make my logger use the console appender, the log file
appender, and the
xml appender. I can visualize my XML file with chainsaw, but I would
like to use a LogFilePatternReceiver, so I won't have
Return Receipt
Your chainsaw-LogFilePatternReceiver
document
:
Hi,
I am also new to using Chainsaw, infact I studied it yesterday and using it to
view my log file.
What I guess is that you have given the logFormat information in a wrong way.
You are supposed to write the logFormat in KEYWORDS and not as you have written
in your properties file. In other
I figured out how to programmatically create a DBAppender and write log
messages to a database. See the sample code (far) below. In a nutshell, I had
to get the DBPerfTest() working first. Then I worked to get the programmatic
version working. Who knew you had to call activateOptions() on th
This is how we solved appending to a DB. We send a JMS message to a topic.
Then have a Message Bean listen to the topic and the bean inserts the
logging statement into the database. The bean also resends the message out
for anything configured for the bean (Chainsaw in particular only is setup
to
We have an windows GUI tool hosted in IIS.
The users basically use the JNLP to download the tool and use the tool.
We do log the meesages to a file.
Now, if I switch the file appender to console, then I don't see if the
console popping up or any console messages.
Are there any alternative appenders
I'm not sure if I understand the situation, but it might be a case
where you would want to use the OutputDebugStringAppender (which calls
the Win32 method of the same name). The messages sent to this appender
will be viewed by any attached debugger. DebugView
(http://www.sysinternals.com/ntw2