RE: Log4J and EJB's

2001-08-17 Thread Seemantini Godbole
IL PROTECTED]] > Sent: Friday, August 17, 2001 7:48 PM > To: LOG4J Users Mailing List > Subject: RE: Log4J and EJB's > > > > Hi, > My EJB's are deployed on the same weblogic server as the jsp's. > Does anyone have any example ejb logging code ? > Cheers >

RE: Log4J and EJB's

2001-08-17 Thread Seemantini Godbole
Where are your EJB's deployed? If they are not on the same machine/VM then they may not be getting configured for log4j. Hope this helps, Seemantini -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:55 AM To: [EMAIL PROTECTED] Subject:

RE: bug in SocketAppender?

2001-08-15 Thread Seemantini Godbole
Sorry I correct my earlier statement synchronized(this) should be changed to synchronized(SocketAppender.this) in my opinion. -Original Message- From: Seemantini Godbole Sent: Wednesday, August 15, 2001 4:27 PM To: 'LOG4J Users Mailing List' Subject: bug in SocketAppende

bug in SocketAppender?

2001-08-15 Thread Seemantini Godbole
I was looking at some code in SocketAppender, particularly the following piece: I understand that the SocketAppender fires another thread, Connector, whenever it can not reach the remote server. The connector keeps trying every now and then to connect to the remote server and it sets the value of

RE: Why isn't message serializable in LoggingEvent?

2001-08-08 Thread Seemantini Godbole
Well, am I correct in understanding?but I think renderer will take the entire object and produce a string representation. Do other people have needs such as producing a log with pattern.. %d %p %m{duration} %m{userid} %c %m%n.where duration and userid are set in that message. I also am a

RE: Why isn't message serializable in LoggingEvent?

2001-08-08 Thread Seemantini Godbole
Timothy G. Mullé Senior Software Architect Reuters Valley Forge Solutions Center 1000 Madison Avenue Norristown, PA 19403-2432 Phone: (610) 650-8600 x8340 Fax: (610) 650-8170 Seemantini Godbole

RE: Why isn't message serializable in LoggingEvent?

2001-08-08 Thread Seemantini Godbole
Tim, Look at SocketAppender, in case you want to send to remote server, you want to send the entire LoggingEvent and not just message. It is very interesting...take a look..also at SocketServer and SocketNode ths, Seemantini -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

RE: Idea on how to make Log4J more expandable during runtime.

2001-08-06 Thread Seemantini Godbole
these methods. In my case there is object which has a message, starttime and endtime. Then when you create a logging event you can supply a String message and any other params such as starttime etc. -Original Message- From: Seemantini Godbole Sent: Monday, August 06, 2001 2:55 PM To: '

RE: Idea on how to make Log4J more expandable during runtime.

2001-08-06 Thread Seemantini Godbole
Tim, As Ceki pointed out, I do %x{userid/request/site} etc to log info that is thread specific. For performance and Transaction I have extended PatterLayout and PatternParser class. Now I have to do %P{starttime} %P{endtime} %P{duration} to get timings on the component. The only problem/addition

RE: log4j for Auditing

2001-08-06 Thread Seemantini Godbole
Title: log4j for Auditing Mike,   First of all I created and used a class called ThreadInfo (very similar to MDC that is being talked about) to record user, component, request etc. So this gets logged on every line of the log.   Secondly, I created priority levels called PERFORMANCE and TRANS

something similar to socketAppender with backup

2001-07-30 Thread Seemantini Godbole
Hi all, I need something like a SocketAppender, however I want to be able to specify backup server(s). For example, if the socketAppender fails to connect to a server/or send LoggingEvent on the wire, I want it to try the backup server(s). I was planning to write my own appender, is that a mista

RE: Log4J in JSP??

2001-07-23 Thread Seemantini Godbole
t put shows a ? mark instead of the class name. The conversion pattern has %F in it. Why does this happen?? is there any solution?? Bharat -Original Message----- From: Seemantini Godbole [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 11:27 AM To: 'LOG4J Users Mailing List&#

RE: Log4J in JSP??

2001-07-23 Thread Seemantini Godbole
Sumit,   You may want to design a class with all static methods which will do logging to log4j. It could have a method such as   public static void doInfoLog(String catName, String message) {     Category cat = Category.getInstance(catName);       //log the message to this category }   Y

RE: pl. help on Appenders; or rather DailyRollingFileAppender

2001-07-16 Thread Seemantini Godbole
What was I thinking? Sorry, but I just saw synchronized around doAppend in AppenderSkeleton. That really eliminates need for putting synchronized in any of the sub classes. However, the question about messages getting mixed still remains? Thanks -Original Message- From: Seemantini

pl. help on Appenders; or rather DailyRollingFileAppender

2001-07-16 Thread Seemantini Godbole
Hi All, I really need help on some confusion surrounding a log I saw. I am using DailyRollingFileAppender, and looked at a single line of log which had a mish-mash combination of 3 to 4 log messages. seems like three or 4 threads were competing to write to this file. We have a JSP, servlet, EJB

confused about number of categories

2001-06-27 Thread Seemantini Godbole
Hi all, I am trying to change a lot of our existing code so that everything uses log4j. Now here is the problem. A lot of our existing code creates AppError objects to signal that something wrong has happened. I thought it will be nice to add logging in the constructor of this error object. That

RE: Option data of user-defined conversion specifier

2001-06-22 Thread Seemantini Godbole
I agree, I have a similar problem for doing %x{} and I think those methods should be protested. I too have copied the entire methods in my subclass. Thanks -Original Message- From: Ernie Parker [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 11:00 AM To: [EMAIL PROTECTED] Subject

Help on PropertyConfigurator

2001-06-20 Thread Seemantini Godbole
Hi all, I wrote some classes to override Category, CategoryFactory etc. It looks almost identical to classes we have in examples/appserver. However I am stuck because of PropertyConfigurator. It seems like I have to create/initialize categories in the code, otherwise if I let PropertyConfigurato

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 ...

RE: Multiple log files with SocketServer

2001-06-13 Thread Seemantini Godbole
When you say client group, do you mean different machines that are using socketAppender? If that is the case, you can give a directory as a command line argument (see javadoc on SocketServer) to socketServer. In this dir you can put several config files (hostname.lcf i.e, 192.215.113.16.lcf). The

RE: while we are talking about NDC

2001-06-12 Thread Seemantini Godbole
plemented yet (to my knowledge). Cheers, Anders Seemantini Godbole wrote: > > Hi all, > > For last couple of weeks I have been using log4j and is working very well > for our logging needs. Ours is a typical J2EE architecture, with JSP, > servlets, EJB combination. > > However, we

while we are talking about NDC

2001-06-12 Thread Seemantini Godbole
Hi all, For last couple of weeks I have been using log4j and is working very well for our logging needs. Ours is a typical J2EE architecture, with JSP, servlets, EJB combination. However, we need some client specific info such as the name of the user who logged in, client ip address, request ty

RE: SocketAppender

2001-06-12 Thread Seemantini Godbole
Create a file named (ip address.lcf, i.e., 192.216.253.116.lcf. This is the host that generated the log message and sent to SocketAppender) in a directory on a machine where SocketServer is running. This file can contain all the config info. IMHO, this is a good way as you can change the config wi

RE: dynamic subject with smtp appender

2001-05-30 Thread Seemantini Godbole
ll to setSubject from? Thanks for your help - Original Message - From: "Seemantini Godbole" <[EMAIL PROTECTED]> To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, May 30, 2001 11:10 AM Subject: RE: dynamic subject with smtp appender

RE: dynamic subject with smtp appender

2001-05-30 Thread Seemantini Godbole
Could you use the setSubject method on smtp appender? -Original Message- From: Gray Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 10:05 AM To: LOG4J Users Mailing List Subject: dynamic subject with smtp appender Hello, Does anybody know if you can somehow dynamically c