ObjectRenderer

2006-04-27 Thread Steve Pruitt
Has anyone had luck getting object renderers to work? I have a renderer that implements doRender and returns a string. Both, the rendered class and rendering class are defined in my config file with a render tag. I have a sysout in the doRender method, but I never see its println in the

Filter chain access

2006-04-26 Thread Steve Pruitt
I am unable to locate any method to gain access to an appender's entire filter chain. There are methods to get the first filter or head filter. How do I get access to the n + 1 filter? -S - To unsubscribe, e-mail: [EMAIL

RE: Filter chain access

2006-04-26 Thread Steve Pruitt
Oops. Just saw the next field on Filter. I was looking for a method call. -S I am unable to locate any method to gain access to an appender's entire filter chain. There are methods to get the first filter or head filter. How do I get access to the n + 1 filter? -S

Cannot reconcile custom level placement

2006-04-25 Thread Steve Pruitt
I have a custom level named Action that has some specific logging semantics. Currently, the Action level is below Error in the level hierarchy. I implemented a log wrapper as described in the Log4J manual. The wrapper implements a action print method. What I want is for Action level events to

Xml log stopped working

2006-01-03 Thread Steve Pruitt
I had an xml log working with a simple file appender configuration. appender class=org.apache.log4j.FileAppender name=XFA param name=File value=C:/Logs/ddslog.xml/ layout class=org.apache.log4j.xml.XMLLayout/ /appender When I switched it to a

RE: Retrieving all defined appenders

2005-12-09 Thread Steve Pruitt
- From: Steve Pruitt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 12:02 PM To: Log4J Users List Subject: Retrieving all defined appenders Does anyone know a good way to query for all defined appenders without having to loop through all loggers? I've searched the api, but I can't find

Xml config file problem

2005-12-09 Thread Steve Pruitt
This is not a log4j problem per se. It appears to be xerces errors, but maybe someone ran into it before and can help. Prior to configuring log4j with an xml config file, I read the file myself and check log file pathnames set in some appenders. I then transform the document back into an

Retrieving all defined appenders

2005-12-08 Thread Steve Pruitt
Does anyone know a good way to query for all defined appenders without having to loop through all loggers? I've searched the api, but I can't find anything. Thanks, -S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: ConversionPattern

2005-11-17 Thread Steve Pruitt
%m%n / /layout /appender Paul On 17/11/2005, at 8:48 AM, Steve Pruitt wrote: I specified a conversion pattern for an appender, but I get the default format with milliseconds, thread, full logger name, etc. I did read I could use a conversion pattern with most layouts

Max backup index and daily rolling

2005-11-17 Thread Steve Pruitt
I think having the same max backup index setting for daily rolling files would be useful. I would still like to limit the sheer number of log files. I guess I can put it in the suggestion box. -S - To unsubscribe, e-mail:

Custom html layout

2005-11-17 Thread Steve Pruitt
It seems I can solve my custom pattern + html layout dilemma with a custom layout. I extended the log4j HTMLLayout class and overrode the format and getHeader methods. In the getHeader method, I return everything as in the log4j HTMLLayout class header, except I return the different column

RE: Custom level question

2005-08-03 Thread Steve Pruitt
. Something like File - Console - Email. I hope this makes sense. -S On Aug 2, 2005, at 3:33 PM, Steve Pruitt wrote: All, I am adding a custom level for my application. The level name is SESSION and it has a severity level between INFO and WARN. Documentation says each level must have

RE: Log4j config file on Websphere

2005-07-29 Thread Steve Pruitt
: Log4j config file on Websphere I have no issues with putting the xml file in websphere as long as I ALSO put the doctype (.dtd file) in the same dir as the config file. -Original Message- From: Steve Pruitt [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 10:32 AM To: Log4J Users List

RE: Log4j config file on Websphere

2005-07-29 Thread Steve Pruitt
That's very interesting. It's a good day when you learn something. If I understand, I do not need to include a dtd; it is fetched from the log4j jar. When and where does the the resolver get registered? This may very well be something I prevent from doing so. Setting a breakpoint will be nay

RE: Log4j config file on Websphere

2005-07-29 Thread Steve Pruitt
I found my problem. I looked at the DOMConfigurator code. The resolver is set when the configure(Element el) is not used. I went back to my code and sure enough I was using configure(root). Duh, user abuser. I apologize for any confusion. -S On Jul 29, 2005, at 12:14 PM, Steve Pruitt