I believe Chainsaw V2 has a similar requirement - as events are received, the appname
and hostname are examined and events are routed to tabs in the tabbedpane-based UI
corresponding to the unique appname/hostname combination.
For my purposes it was OK to use appender options (see any of the net
Hi,
I am trying to add few conversion characters to pattern layout. Values
of some of them are known at the logger initialization and for few it
can be passed per-message. I was looking at following guideline -
http://www.ingrid.org/jajakarta/log4j/jakarta-log4j-1.1.3/docs/deepExten
sion.html
Th
Ok. I considered subclassing. I need to know add few params like,
hostname, applicationID. So I was overriding forcedLog method of Logger
to send myLoggingEvent instead of regular LoggingEvent. MyLoggingEvent
(subclassed from LoggingEvent) has two custom fields - AppId & hostName.
Any thoughts of
Thanks on the input. I looked at my complete manual and it is there. I
will work on it.
One thing I would like to mention - I was mislead into this by one of
the examples that ships with log4j-1.2.8 download.
That example subclasses Logger ! May be it is a good idea to remove such
example from dis
At 01:44 PM 7/14/2003 -0700, you wrote:
On Fri, 11 Jul 2003, Jacob Kjome wrote:
> I'm in almost total agreement with what you've just said. Logging
> configuration should be set by the application, not its libraries.
> Libraries shouldn't be adding a log4j.properties or log4j.xml file to
> their c
On Fri, 11 Jul 2003, Jacob Kjome wrote:
> I'm in almost total agreement with what you've just said. Logging
> configuration should be set by the application, not its libraries.
> Libraries shouldn't be adding a log4j.properties or log4j.xml file to
> their classpath, thus triggering automatic log4
This subject has been discussed many times in the past. Please refer
to the archives.
No, it is not a bug. Subclassing logger class is discouraged. Consequently,
the logger tag does not allow for a class attribute. However, you can
get around this by various means which I am not going to disclose h
Hi,
I am trying to subclass Logger(Category) & LoggerFactory and use
DOMConfigurator(log4j.xml). I ran into interesting problem. My stuff
works fine when I configure the logger from program i.e. not using a xml
or properties file.
But when I use xml file, it turns out that tag does not have a
wa
I tried ur suggestion. That eliminated "no such properties error.." But
It is still not working. NtLoggerFactory's makeNewLoggerInstance method
is not getting called hence I am getting Class cast Exception.
Thanks,
-sanjay
Here is the Log4jTest.java from which I am using the logger ---
---
Steve,
Your last suggested configurations settings were right on the money.
Thanks so much for your help.
Regards,
Neil
-Original Message-
From: Steve Ebersole [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 13, 2003 9:17 AM
To: Log4J Users List
Subject: Re: Newbie Question
Also, use
Milin,
| Thanks for the quick response. I don't see anything specifically
| written about file locking in the java.io.Writer.
Of course not. java.io.Writer is a generic (abstract) character emitter and
leaves the media specifics to the subclasses, such as FileWriter. I wanted
to draw your attent
Thanks for the quick response. I don't see anything specifically written about file
locking in the java.io.Writer.
FileOutputStream javadocs does say that
"Some platforms, in particular, allow a file to be opened for writing by only one
FileOutputStream
(or other file-writing object)
>From the PropertyConfigurator javadoc:
"You can customize the way message objects of a given type are converted to
String before being logged. This is done by specifying an ObjectRenderer for
the object type would like to customize.
The syntax is:
log4j.renderer.fully.qualified.name.of.rendered.
Is FileAppender thread safe? I don't see any file locking occuring in the
FileAppender & WriterAppender classes.
If I have 2 processes writing to the same log file, could I get a conflict?
If I have 2 threads writing to the same log file, could I get a conflict?
I haven't been able to get a c
Hi,
I am working on log4j for some project.
Currently in the project,the outgoing and incoming messages are logged
as Strings via 'resultObject.toString()'.This doesn't allow the use of
Log4J Object Renderers.I want to log the message as 'resultObject' Object itself so
that
ObjectRenderers can
15 matches
Mail list logo