Re: Expanding SocketServer

2001-06-14 Thread Ceki Gülcü
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

RE: Missing classes (LogTextPanel / TextPanelAppender)

2001-06-14 Thread Thilo Schottelius
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

Re: Expanding SocketServer

2001-06-14 Thread Atte A
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

RE: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Ceki Gülcü
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.

Using only the root Category (is this a problem ?)

2001-06-14 Thread Jamie Tsao
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

Re: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Christopher Taylor
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

Re: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread James House
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

RE: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Jim Moore
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

Re: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Christopher Taylor
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

RE: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Ceki Gülcü
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

RE: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Jim Moore
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

Re: Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Ceki Gülcü
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

v0.40

2001-06-14 Thread Mukthineni, Ravi
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]

Do I need to use multiple hierarchies, and how?

2001-06-14 Thread Prokash, Jim
> 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

Re: Missing classes (LogTextPanel / TextPanelAppender)

2001-06-14 Thread James House
>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

Re: catching exceptions ?? --> PLEASE

2001-06-14 Thread Eddie
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

New GUI Appender for Log4J

2001-06-14 Thread Brad Marlborough
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

RE: Multiple log files with SocketServer

2001-06-14 Thread Seemantini Godbole
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 ...

Missing classes

2001-06-14 Thread Thilo Schottelius
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

Re: class loading problems

2001-06-14 Thread Gray Jones
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

Re: Expanding SocketServer

2001-06-14 Thread Ceki Gülcü
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

Expanding SocketServer

2001-06-14 Thread Atte A
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

Re: catching exceptions ?? --> PLEASE

2001-06-14 Thread Ceki Gülcü
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.

Re: PropertyConfigurator.configure(URL) error in Applet

2001-06-14 Thread Ceki Gülcü
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

Response to appeal

2001-06-14 Thread Ceki Gülcü
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

PropertyConfigurator.configure(URL) error in Applet

2001-06-14 Thread Zsolt Koppany
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

Re: catching exceptions ?? --> PLEASE

2001-06-14 Thread Eddie
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

AW: AW: Appender that sends a mail

2001-06-14 Thread Scheil, Sven
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

Error while configurator file is an XML File

2001-06-14 Thread suneel v v v
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

Re: AW: Appender that sends a mail

2001-06-14 Thread Ceki Gülcü
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

AW: Appender that sends a mail

2001-06-14 Thread Scheil, Sven
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

RE: log4j: ERROR No appenders could be found for category though I Ha ve specified an appender ?!

2001-06-14 Thread Apvrille, Axelle
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

Fwd: Re: [ajug] Logging in JDK1.4 beta, any feedback?

2001-06-14 Thread SCOTT FARQUHAR
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