help to extend PatternLayout

2007-06-23 Thread Naider Chen
Hi: I'm trying extend PatternLayout in order to intercept log message. The foremat method basically return all the log message included in the ConversionPattern. I'd like to get the %m and do some pre-process and return it. I'm not sure this is the way to get %m can anybody help me with this.

Re: Unable to call doRender. Am I missing anything? Please help

2007-06-07 Thread Naider Chen
der in one shot or I need to customize the Layout for each Appender? Thanks again for your assistance. Naider --- Curt Arnold <[EMAIL PROTECTED]> wrote: > > On Jun 6, 2007, at 9:59 AM, Naider Chen wrote: > > > Hi: > > > > Can any one confirm to me it's wor

RE: Unable to call doRender. Am I missing anything? Please help

2007-06-06 Thread Naider Chen
551 INFO [main] log4j.MyDemo (MyDemo.java:20) - test this string --- Naider Chen <[EMAIL PROTECTED]> wrote: > Thanks Ron: > > Thank you for your reply and I really appreciate it. > > > May be The getRenderedMessage method in the > LoggingEvent is another place that I c

RE: Unable to call doRender. Am I missing anything?

2007-06-01 Thread Naider Chen
e object that's about be > rendered is an instance > of String. In that case, the Object to render is > simply cast into a > String and used as-is. > > > Ron Gallagher, AT&T Mobility > > > -Original Message- > From: Naider Chen [mailto:[EMAIL PRO

Unable to call doRender. Am I missing anything?

2007-05-31 Thread Naider Chen
class LogCatcher implements ObjectRenderer { public String doRender(Object arg0) { String st = arg0.toString(); System.out.println("LogCatcher doRender ** log string catched = *" + st + "*"); return st; } } ALWAY