Log4J + J2ME

2005-03-23 Thread Neil Benn
Hello, I'm looking for a logging solution for doing logging with a Personal Profile app (Creme JVM). Does anyone know if Log4J can work out of the box on a J2ME VM/Personal profile API? Cheers, Neil - To unsubscribe, e

chainsaw and "escaping" XML entities

2005-03-23 Thread Mike Blake-Knox
Pardon for multiple postings; I've been having problems getting the message into log4j-users. It seems as if chainsaw should have a change... I changed the xml version to 1.1. Unfortunately, messages "XML version "1.0" is recognized, but not "1.1"" are displayed when it tries to parse it. (In so

RE: logging not working

2005-03-23 Thread Russell Reeves
The solution was to make sure there is a logger (and related appender) in the log4j.properties file that matches the name in Logger.getLogger("some name") -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:08 AM To: Log4J Users List Subject: RE:

Re: Multiple log files.

2005-03-23 Thread Luke Reeves
Thanks Jake, that worked like a charm! Luke On Wed, Mar 23, 2005 at 10:33:04AM -0600, Jacob Kjome wrote: > > I'm surprised that config file works at all. You are attempting to apply > additivity to your appender. Additivity applies to loggers, not appenders. > So, make sure to get rid

Re: log4j:ERROR Problem appending event.

2005-03-23 Thread James Stauffer
Restarting Java (Tomcat) fixed the problem. On Wed, 23 Mar 2005 11:24:18 -0600, James Stauffer <[EMAIL PROTECTED]> wrote: > Ideas? > > log4j:ERROR Problem appending event. > at > org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221) > at > org.apache.log4j.helper

RE: Re: Displaying custom log level in Chainsaw v2

2005-03-23 Thread Scott Deboy
You don't need to modify Chainsaw - Chainsaw will display (as text) the level provided by the LoggingEvent. You need to provide a 'receiver' that can use your custom logging level when constructing LoggingEvent instances. For example, you can display java.util.logging levels (as text) when even

Application & custom appender never exits

2005-03-23 Thread Jordan Redner
Hello, I've extended AppenderSkeleton, and my very primitive implementation makes use of Sun's JMS (pub/sub). What is strange is that I can't seem to get my application to exit because of a JMS thread still alive, despite implementing the close() method. When debugging, I see that close() is i

Re: Log4j failed to initialize in Jbuilder 2005 web run/debug

2005-03-23 Thread James Stauffer
On Wed, 23 Mar 2005 15:12:59 -, [EMAIL PROTECTED] > log4j:WARN No appenders could be found for logger > (org.apache.commons.digester.Digester). > log4j:WARN Please initialize the log4j system properly. > (full stack trace listed below) > > From http://logging.apache.org/log4j/ I gather this me

log4j:ERROR Problem appending event.

2005-03-23 Thread James Stauffer
Ideas? log4j:ERROR Problem appending event. at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57) at org.apache.log4j.Category.callAppenders(Category

Re: way to get username into logs

2005-03-23 Thread Jacob Kjome
Quoting Elihu Smails <[EMAIL PROTECTED]>: > Could you point me to a resource where I could get more information on > how to do this. I don't have much experience with extending Log4J's > classes. > It isn't a matter of extending any classes, but simply using what's available. I suggest you read

Re: Multiple log files.

2005-03-23 Thread Jacob Kjome
I'm surprised that config file works at all. You are attempting to apply additivity to your appender. Additivity applies to loggers, not appenders. So, make sure to get rid of the line "log4j.additivity.mail=false". The rest looks ok. I wonder if the line I just mentioned throws the config ou

Re: Displaying custom log level in Chainsaw v2

2005-03-23 Thread alex mazour
Paul Smith aconex.com> writes: > > Probably not, there is still the issue of resolving the Level string/int > to a Level. The log4j Level class needs to be changed to enable > 'registration' of custom levels, but I'm not sure how much of a priority > that is at this stage. > > Paul > You

RE: why does log4j ignore my log4j.properties definition?

2005-03-23 Thread Bradley, Todd
Ah, thank you very much. I didn't expect that to be the case, since it's not a class. And congratulations on the new baby! One final question. I think this may be more of a Java question than a log4j question, but indulge me. Based on the newfound knowledge that the properties file needs to be

Re: Log4j failed to initialize in Jbuilder 2005 web run/debug

2005-03-23 Thread Jacob Kjome
The error looks like it is happening at the Tomcat level. This probably means that commons-logging, which Tomcat uses, is finding Log4j in the classpath and attempting to use it. Try putting a very simple "log4j.xml" config file in the Tomcat common/classes directory (or elsewhere on the classpa

Log4j failed to initialize in Jbuilder 2005 web run/debug

2005-03-23 Thread hamish.rose
Hi All I'm new to asking questions but I'll try and keep it smart. Thanks in advance if anyone can help. I've inherited someone else's web project and am attmpting to set it up in JBuilder 2005 as it is the IDE I am used to. My predessor has used Log4j-1.2.8 Currently I can build the project

Re: Multiple log files.

2005-03-23 Thread Luke Reeves
Sure thing: log4j.rootLogger=INFO, A1, A2 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %-5p [%-17c{2}] %3x - %m%n log4j.appender.A2=org.apache.log4j.FileAppender log4j.appender.A2.File=d:\\

DOMConfiguration Help

2005-03-23 Thread Dário Luís Coneglian Oliveros
Hi there, I was wondering why DOMConfigurator.configureAndWatch() method does not have a LoggerRepository argument like doConfigure() does. Since I have two different log4j configurations for two different scoped EARs, the only way to configure them dynamically (as far as I know) is by choosing

Re: guidance on creating a custom layout

2005-03-23 Thread James Stauffer
Check the API for the MDC class. http://jdocs.com/log4j/1.2.8/api/index.html Also check the PatternLayout class in the API to see how to print MDC values. Short example: Call this in codeo: MDC.put("PID", getPid()); Add this to the pattern: %X{PID} On Tue, 22 Mar 2005 17:32:08 -0500, Elihu Smail

Re: way to get username into logs

2005-03-23 Thread Elihu Smails
Could you point me to a resource where I could get more information on how to do this. I don't have much experience with extending Log4J's classes. Thank you. On Tue, 22 Mar 2005 21:28:36 +0100, David J. M. Karlsen <[EMAIL PROTECTED]> wrote: > Elihu Smails wrote: > > >Is there a way to use one

Re: Congratulations Scott

2005-03-23 Thread Ceki Gülcü
+1 At 10:58 PM 3/22/2005, you wrote: My best for many happy years and experiences! Jim -- Ceki Gülcü - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: why does log4j ignore my log4j.properties definition?

2005-03-23 Thread Ceki Gülcü
At 10:44 PM 3/22/2005, Scott Deboy wrote: config file must be in classpath. typing 1-handed - new baby boy! Congratulations, that's wonderful! Wishes of happiness to the newcomer as well as to the joyous and presumably exhausted parents. -- Ceki Gülcü The complete log4j manual: http://www.qos.c