Re: JMS and MDB

2002-07-24 Thread torben . bruun
Hi, Well my hope/idea was that I could log any kind of Object (that was serializable) and then I could deside at JMS receiver side what to do with the logged object. Write it to DB or something else determined by the object/class type. But this doesn't seem to be possible. It looks like it

Re: JMS and MDB

2002-07-24 Thread Torben Bruun
Hi, Yes I'm using the method you mention. I'm using log4j 1.2.5 br Torben Bruun ___ Denne mail er sendt via Mail på Opasia. Få en gratis freemail mailboks på http://mail.opasia.dk Følg med i de danske nyhedsgrupper på

RE: JMS and MDB (James Law vacation)

2002-07-24 Thread Jon Skeet
I'm on vacation until July 31. Doh - apologies for approving this post... will look more closely next time :) Sorry folks... Jon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Advanced questions ? (I hope)

2002-07-24 Thread Havaldar, Raghu
A possible solution for # 1: - implement your own logger. Override the various error/warn/etc methods - use contextual info(utilizing MDC) to identify which log files that entries need to be dumped in - the context info can contain an 'object id' identifying the specific object, on which the log

The definitive guide for directing System.out/err ?

2002-07-24 Thread Max Rydahl Andersen
Hi, Looking in the archives i found a handfull of threads discussing the possibility of letting println's (etc.) going to System.out/err being sent to a log4j catagory instead. Anyone that have gathered a complete an definitive guide for how to do this safely and without running into infinte

RE: Advanced questions ? (I hope)

2002-07-24 Thread Shapira, Yoav
Howdy, 2. Is it possible to associated a log file to an INSTANCE of an object? I have object which does quite complex things and which is constructed with an Id. I would like to associate one log file per instance, such as log-id1 and log-id2 if I do new ComplexObject(id1); and new

SNMPAppender

2002-07-24 Thread Craig Smith
Has anyone written an SNMP appender? I'd be interested in one. If there isn't one available I might pick away at it. Craig Please Note The information in this E-mail message is legally privileged and

RE: SNMPAppender

2002-07-24 Thread Shapira, Yoav
Howdy, I second the interest in that. Check the contribs packages to see if there's something close. Yoav Shapira Millennium ChemInformatics -Original Message- From: Craig Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 9:12 AM To: [EMAIL PROTECTED] Subject:

RE: SNMPAppender

2002-07-24 Thread Ceki Gülcü
Did you see this? http://www.m2technologies.net/asp/snmpTrapAppender.asp At 09:13 24.07.2002 -0400, you wrote: Howdy, I second the interest in that. Check the contribs packages to see if there's something close. Yoav Shapira Millennium ChemInformatics -Original Message- From:

log4j question

2002-07-24 Thread PRAVIN VAJIRKAR
Hi there, I don't know if this a right place to mail for log4j questions. I would really appreciate if you guys can help me out in this. I am new to log4j and trying to put the INFO/DEBUGmessages to a log file. Now, when I print the same in the console, it shows date, time and bunch of

RE: log4j question

2002-07-24 Thread Swami Iyer
You have to attach your properties file in order for us to tell you why this is happening. Swami -Original Message- From: PRAVIN VAJIRKAR [mailto:[EMAIL PROTECTED]] Sent: July 24, 2002 10:04 AM To: '[EMAIL PROTECTED]' Subject: log4j question Hi there, I don't know if this

RE: SNMPAppender

2002-07-24 Thread FLYNN, Peter -Syntegra UK
I've been using it for a while. Its pretty good. Peter -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: 24 July 2002 14:34 To: Log4J Users List Subject: RE: SNMPAppender Did you see this? http://www.m2technologies.net/asp/snmpTrapAppender.asp

Can anyone explain this?

2002-07-24 Thread Isaac.Goldstein
Hi. I need to dynamically define the name of my RollingFileAppender (We have amny environments and I don't want to have to keep on changing the config file). Since I also don't want the headache of maintaining system properties I decided on doing it via the code as follows:

RE: log4j question

2002-07-24 Thread Colin MacDonald
-Original Message- I am new to log4j and trying to put the INFO/DEBUGmessages to a log file. Now, when I print the same in the console, it shows date, time and bunch of other things (which is good), but when I try with teh log file, it jus shows the text message without the

Re: Can anyone explain this?

2002-07-24 Thread Ceki Gülcü
At 10:27 24.07.2002 -0400, you wrote: Hi. I need to dynamically define the name of my RollingFileAppender (We have amny environments and I don't want to have to keep on changing the config file). Since I also don't want the headache of maintaining system properties I decided on doing it via the

Does logger work with out a property file??

2002-07-24 Thread Vullanki, Srividya
Hi, I have couple of questions in Log4j. 1. Is there a way we can check whether the property file is available to the component. If its not available,then invoke it with default values with out any file!! 2.How can i merge my application property file and the log4j property file. Thanks in

Re: The definitive guide for directing System.out/err ?

2002-07-24 Thread Jacob Kjome
Hello Max, I don't know about a definitive guide, but this is one possible way of doing things: StringWriter sw = new StringWriter(); ex.printStackTrace(new PrintWriter(sw)); logger.error( + sw); Jake Wednesday, July 24, 2002, 7:30:39 AM, you wrote: MRA Hi, MRA Looking in the archives i

Re: Can anyone explain this?

2002-07-24 Thread Isaac.Goldstein
I meant when I stop and start the server. In any case, I figured out the problem. Apparently log4j expects the String representing the file path to have its path separators escaped. In other words the string i was passing in looked something like this c: \jakarta4\webapps... and it expects

Re[2]: Can anyone explain this?

2002-07-24 Thread Jacob Kjome
What's weird is that if the escaped backslashes are needed, why does the file get written to in the first place? Log4j , obviously, finds the file and is able to write to it. The Append thing doesn't, on the face of it, seem like it should be related to using escaped backslashes or not. A

using log4J with JBoss and Cactus

2002-07-24 Thread Paul Ekeland
Hello everyone, I am currently writing a program to test my EJBs using Cactus. I created a war file of the cactus tests and they run on a JBoss 3.0 platform. JBoss, Cactus and my program are all using log4J... Here is how it is written so far: I followed your recommandations and so I adapted the

RE: JDBCAppender - Column values

2002-07-24 Thread Narayanan, Shiva (MED, Compuware)
I am a newbie to log4j. Could you please explain how to extend PatternLayout? -Original Message- From: Kevin Steppe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 2:20 PM To: Log4J Users List Subject: Re: JDBCAppender - Column values LogEvents don't have fields for those

Re: using log4J with JBoss and Cactus

2002-07-24 Thread Ceki Gülcü
Paul, What does log4j say when it reads log4j.xml? Second, you can merge the contents of log_client.properties into log4j.xml. Do you know if log_client.properties parsed at all? At 17:44 24.07.2002 +0200, Paul Ekeland wrote: Hello everyone, I am currently writing a program to test my EJBs

Separate properties file for each category

2002-07-24 Thread Daly, Michael
Is there a way to have a properties file defined for each category? I would like each application within a JVM to be able to configure their application logging without needing one giant log4j.properties file that every app must edit (and potentially cause problems for other apps). Is this

large scale log4j configuration

2002-07-24 Thread Lu, David
Hi everyone, Where do most people put their configuration files in a multi-ear, multi-war and multi-jar environment? I see several cons of putting each configuration file within each jar (as opposed to the system cp). 1. For my webapp, I have a security.jar file which uses log4j. This

RE: large scale log4j configuration

2002-07-24 Thread Shapira, Yoav
Hi, It sounds like some of your problems come from relying on the default log4j startup configuration, where it looks for log4j.properties on the classpath. A possible alternative, the one we use, is to write a startup servlet that loads on server startup and does the log4j configuration for

RE: large scale log4j configuration

2002-07-24 Thread Lu, David
Thanks for your response. How does one approach servlet-less applications? If I have jar files of only EJB's, do I use a proprietary startup class to achieve initialization? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:34 PM To:

log4j + junit fix involving junit excluded.properties

2002-07-24 Thread Tony Becker
I hope this isn't already common knowledge; it wasn't for me. I'm posting this because I couldn't find the whole solution anywhere, I just sort of puzzled it out after reading about similar problems loading using JAXP classes. Sorry if this would be better placed on a junit list; honestly,

Re: log4j + junit fix involving junit excluded.properties

2002-07-24 Thread Ceki Gülcü
Tony, Thank you for sharing the information. Which version of JUnit is this? Log4j? Can you please try log4j 1.2.6? It is not out yet but you can get a pre-release version at http://qos.ch/log4j-1.2.6.jar . This version gives more detailed information on the appender incompatibility problem.

Builder.com + log4j Articles

2002-07-24 Thread Cato, Simone
To Log4J Users: Continuation of articles comparing log4j with jdk1.4's logging APIs: http://builder.com.com/ (under Current Features). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Configuration File

2002-07-24 Thread Abhijat Thakur
We are moving from log4j version 1.1 to 1.2 . In the new version instead of Category we should be using Logger class. I could not find an example of how the configuraton file should change accordingly. Our old loggingconfiguration file looks something like

Re: Configuration File

2002-07-24 Thread Ceki Gülcü
You can leave the configuration file unchanged or alternatively replace every occurrence of the string category with the string logger. At 15:24 24.07.2002 -0700, Abhijat Thakur wrote: We are moving from log4j version 1.1 to 1.2 . In the new version instead of Category we should be using