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