You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by YMikulski <YM...@infonet.by> on 2001/07/28 18:02:19 UTC
adding conversion characters with options.
Hello!
I made mistake in my last letter. I was confused getOptions() with
extractOption() method in PatternParser class.
It's clear when we like to add characters without options from Paul Glezen's
article and example "AppServer".
What should I do when I like to add my own characters with my options?
How can I get option of my conversion characters?
I saw that authors of the PatternParser class use extractOption() method to
get conversion character option in finalizeConverter(char c)
method. But extractOption() method is private and I can't use it. That's why
I suggest to make this method protected, so that PatternParser subclass can
access to it.
May be I'm in wrong way and somebody help me in this question.
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
Re: adding conversion characters with options.
Posted by Ceki Gülcü <cg...@qos.ch>.
Hello,
I think this question should have been addressed to the log4j-user mailing list.
Anyway, have you looked at org.apache.log4j.examples.MyPatternLayout? Regards, Ceki
At 19:02 28.07.2001 +0300, you wrote:
>Hello!
>I made mistake in my last letter. I was confused getOptions() with
>extractOption() method in PatternParser class.
>It's clear when we like to add characters without options from Paul Glezen's
>article and example "AppServer".
>What should I do when I like to add my own characters with my options?
>How can I get option of my conversion characters?
>I saw that authors of the PatternParser class use extractOption() method to
>get conversion character option in finalizeConverter(char c)
>method. But extractOption() method is private and I can't use it. That's why
>I suggest to make this method protected, so that PatternParser subclass can
>access to it.
>May be I'm in wrong way and somebody help me in this question.
>
>Regards.
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
--
Ceki Gülcü - http://qos.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org