Atay,
As long as you can guarantee that you have one category across a SessionBean it should
work but I am afraid you cannot guarantee that. You did not specify if you wanted to
separate logging per session bean type or session bean instance or both. It does not
matter actually.
The logging
Dear James,
thank you for your quick response. I will check wether it works.
As I just notice, there is a comercial GUI viewer available, basing on
log4J. I will check this, too.
Thilo
-Original Message-
From: James House [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 14. Juni 2001 19:59
Ceki,
- This is what we want to do:
We have several Session EJB's on Websphere. Each one of them have to log to
its own log file. Because we don't want to use java.io we want to log via
sockets.
- This is how I first tried to do the above:
I used SocketAppender in each one of the EJB's and cal
Jim,
That's true but in AsyncAppender:
public
void append(LoggingEvent event) {
// Set the NDC and thread name for the calling thread as these
// LoggingEvent fields were not set at event creation time.
event.getNDC();
event.getThreadName();
if(locationInfo) {
event.
Hi,
I've written a very simple wrapper class around log4j. It basically has
a STATIC instance of the root Category. There are static logging
methods that basically call the corresponding log method of the root
Category instance. I will attach several appenders to this single root
instance thr
Yours is a more elegant solution... I was just trying to find something that
Jim could do without making any Log4J mods.
-Chris
- Original Message -
From: "James House" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 4:42 PM
Subject: Re
What about making a new appender that contains a collection of appenders -
each keyed with a name.
When the appender is told to log something, it can look at which thread is
doing the logging, and use the thread's name as the key to retrieve the
appropriate file appender, which it then delega
The thread name is part of the LoggingEvent, though current implementation
is:
public String getThreadName() {
if(threadName == null)
threadName = (Thread.currentThread()).getName();
return threadName;
}
so if it's not asked for that information until it's in an AsyncAppender (or
Wouldn't the easiest way to accomplish this is
create Category and Appender for each new Thread as it enters the pool (where
the name of the category and appender are the unique thread identifier assigned
in the constructor):
Thread t = new
Thread(xxxSomeRunnablexxx,"xxxSome Thread
Jim,
No actually not. I had not fully read the question previously. I don't think log4j is
designed for thread based logging. This had never come up before. Regards, Ceki
At 17:54 14.06.2001 -0400, Jim Moore wrote:
>Is multiple hierarchies the most appropriate way of doing this?
>
>
>-Ori
Is multiple hierarchies the most appropriate way of doing this?
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 4:56 PM
To: LOG4J Users Mailing List
Subject: Re: Do I need to use multiple hierarchies, and how?
Jim,
Look a the SocketServer
Jim,
Look a the SocketServer for an example of using different hierarchies. You have
understand the rest of log4j pretty well before you use multiple hierarchies.
Otherwise, it's pretty straightforward. Regards, Ceki
At 15:21 14.06.2001 -0400, you wrote:
>> Hi,
>>
>> I apologize, in advanc
Hi,
I am using v0.40 of log4j. Can you give some info on doing log
rotation in this version.
Thanks,
Ravi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> Hi,
>
> I apologize, in advance, if this question has already been answered. If
> it has, please point me to the existing reply. I am using worker threads
> in the same JVM and would like each thread to maintain its own log file.
> Other than that, I would like to use the same categories an
>I tried to compile the the class:
>LogTextPanelExample.java which is located under this path:
>
>C:\Java\jakarta-log4j-1.1.2\contribs\JamesHouse\
>
>I moved the java files to folders that should represent the package
>statement, but when compiling, there was a reference to the class:
>
>import o
Thanks Ceki,
If the PropertyConfigurator.configure() for example isn't able to find my
configuration file, I don't want to continue executing the program.
Now it just continues like if nothing is wrong and does the stadaard logging
which I don't want.
How do I make this happen ?
Eddie
- Or
Hi,
Just wanted to let everyone know that there is a new Swing based GUI
appender called LogFactor5 that plugs into Log4J. It lets you do things
like real time priority level filtering, category level tree navigation,
and log message searching. It's pretty slick and saves a ton of time
when you
IMHO it will be complicating matters if the SocketNode had to decipher
Categories and then look for config files.
However, you can get as granular as you want in that 127.11.11.1.lcf file
(package level/class level). For example, you could say
log4j.category.com.mycompany.Ejb1=WARN, Ejb1Log
...
Hi,
I tried to compile the the class:
LogTextPanelExample.java which is located under this path:
C:\Java\jakarta-log4j-1.1.2\contribs\JamesHouse\
I moved the java files to folders that should represent the package
statement, but when compiling, there was a reference to the class:
import org.ap
Chris,
I tried your suggestions and it seemed to
work. Here's what I did...
in BasicConfigurator.addRenderer ~line
112
try {
ClassLoader loader =
Thread.currentThread().getContextClassLoader(); if (loader
== null) { loader =
Class.forName(renderedClassName).getCla
Atay,
I depends on what you want to achieve. Why don't you try describe your problem in your
words without referring to log4j components at all? Regards, Ceki
At 13:14 14.06.2001 +, you wrote:
>Hi!
>
>I have found a way to solve my problem and wonder if it's a good idea. I have changed
>t
Hi!
I have found a way to solve my problem and wonder if it's a good idea. I
have changed the code for SocketServer (And SocketNode a little bit)in the
following way:
SocketServer is looking at the InetAdress and looks for files in configDir
that matches to the host (for example if host 197.0
Eddie,
Sorry for not answering earlier. This was requested previously as well. It is not
clear what one would do with any thrown exception by the PropertyConfigurator. In what
way would it help if PropertyConfigurator threw an exception? Can you please expand?
Thank you, Ceki
At 14:13 14.06.
Hello,
Hmm, it looks like the new PropertyConfigurator causes a security access violation in
applets. This is a pretty serious problem. We'll look into it and let you know. Ceki
At 14:31 14.06.2001 +0200, you wrote:
>Hi,
>
>when I execute PropertyConfigurator.configure(URL) from an applet I ge
Greetings,
In just 24 hours, over sixty individuals have responded with their
personalized request to Sun. Their requests as well as my critique of
JSR47 can be found at
http://jakarta.apache.org/log4j/docs/critique.html
I am very happy about both the volume and quality of these requests
bu
Hi,
when I execute PropertyConfigurator.configure(URL) from an applet I get
the attached error. What do I do wrong?
Zsolt
--
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7221873 Fax: +49-711-7871017
Netscape Communications Corporation
Can someone please still give an answer to the question below that I posted
a few days ago ???
Eddie
- Original Message -
From: "Eddie" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 4:41 PM
Subject: catching exceptions ??
> The "Pr
Thanks a lot, that's it!
I must have missed this info while reading the docu.
Sven
> -Ursprüngliche Nachricht-
> Von: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
> Gesendet am: Donnerstag, 14. Juni 2001 11:09
> An: LOG4J Users Mailing List; 'LOG4J Users Mailing List'
> Betreff: Re: AW: Append
HI
i am using the comfigurator file which is an XML file.
but the DOMConfigurator class's config method is giving error.
will you please mail me the exact procedure XML configurator file
regards
suneel
- Original Message -
From: "Apvrille, Axelle" <[EMAIL PROTECTED]>
To: "LOG4J Users Mail
Hello,
Combinations of appenders is not an issue. The SMTPAppender requires the JavaMail API
which requires the JavaBeans Activation Framework. Are the associated jar files
accessible to your servlet? Regards, Ceki
At 10:44 14.06.2001 +0200, Scheil, Sven wrote:
>I've still the problem that m
I've still the problem that my jsp hangs up, when the execution comes to the
line that initializes the log category.
The error log of the iplanet webserver says:
[14/Jun/2001:10:18:12] warning (11553): Internal error: Failed to get
GenericServlet.
(uri=/eva_mp/jsp/ServiceFC.jsp,SCRIPT_NAME=/eva_m
hello,
Just to let you know I had found my problem : configuration file was okay
but there was _one_ little log request in my sources before I had
initialized property configurator.
cat.debug("..."); <<<--- ERROR Message for that log !
PropertyConfigurator.configure(System.getProperty
FYI
An interesting read from another java mailing list.
I apologise for duplication for those that receive this twice.
Scott
---
This e-mail is solely for the use of the intended recepient
and may contain information which is confidentia
33 matches
Mail list logo