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 Remko Popma <re...@gmail.com> on 2014/09/22 11:29:30 UTC
Re: [2/2] git commit: Javadoc: Replace @doubt with TODO tags. Custom @'s in Javadoc 8 are not allowed unpackaged and then must exist, and we do not have them, so just use a "TODO" tag which can then be picked up with the Maven tag report if we want to add th
I'm getting a compile error:
Interpolator now has this line:
+ lookups.put("java", new JavaLookup());
But the JavaLookup class does not exist...
Sent from my iPhone
> On 2014/09/22, at 14:29, ggregory@apache.org wrote:
>
> + lookups.put("java", new JavaLookup());
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: [2/2] git commit: Javadoc: Replace @doubt with TODO tags. Custom
@'s in Javadoc 8 are not allowed unpackaged and then must exist, and we do
not have them, so just use a "TODO" tag which can then be picked up with the
Maven tag report if we want to add th
Posted by Gary Gregory <ga...@gmail.com>.
I mean that I cannot get values for "%n" and "%d{UNIX}" in a header or
footer.
I was trying to use %n and it did not work so I tried %d{UNIX} just to see
what would happen and it did not work either.
Looking at the code, this is not surprising since the enhancement
implemented in LOG4J-496 only covered look-ups.
For my narrow case, the workaround is the more verbose
${sys:line.separator}, which is a system property look-up.
I created https://issues.apache.org/jira/browse/LOG4J2-847
Gary
On Mon, Sep 22, 2014 at 11:24 AM, Ralph Goers <ra...@dslextreme.com>
wrote:
> What do you mean “%’s do not”? You mean PatternConverters? I think
> someone asked for that enhancement, but since the header and footer are
> processed before a LogEvent exists their are a whole pile of them that
> won’t work.
>
> Ralph
>
>
> On Sep 22, 2014, at 8:05 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> On Mon, Sep 22, 2014 at 10:26 AM, Ralph Goers <ra...@dslextreme.com>
> wrote:
>
>> I thought Gary recently implemented that.
>>
>
> I had talked about it, and worked it out over the weekend, it's not much
> code actually (as expected).
>
> What was unexpected is that while lookups work in header and footers, %'s
> do not, so you cannot use formatted dates, end-of-lines and such.
>
> Gary
>
>
>> Please read the @doubts. I imagine most of them can be removed at this
>> point.
>>
>> Ralph
>>
>> On Sep 22, 2014, at 2:29 AM, Remko Popma <re...@gmail.com> wrote:
>>
>> > I'm getting a compile error:
>> >
>> > Interpolator now has this line:
>> > + lookups.put("java", new JavaLookup());
>> > But the JavaLookup class does not exist...
>> >
>> >
>> > Sent from my iPhone
>> >
>> >> On 2014/09/22, at 14:29, ggregory@apache.org wrote:
>> >>
>> >> + lookups.put("java", new JavaLookup());
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> > For additional commands, e-mail: log4j-dev-help@logging.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> <gg...@apache.org>
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: [2/2] git commit: Javadoc: Replace @doubt with TODO tags. Custom @'s in Javadoc 8 are not allowed unpackaged and then must exist, and we do not have them, so just use a "TODO" tag which can then be picked up with the Maven tag report if we want to add th
Posted by Ralph Goers <ra...@dslextreme.com>.
What do you mean “%’s do not”? You mean PatternConverters? I think someone asked for that enhancement, but since the header and footer are processed before a LogEvent exists their are a whole pile of them that won’t work.
Ralph
On Sep 22, 2014, at 8:05 AM, Gary Gregory <ga...@gmail.com> wrote:
> On Mon, Sep 22, 2014 at 10:26 AM, Ralph Goers <ra...@dslextreme.com> wrote:
> I thought Gary recently implemented that.
>
> I had talked about it, and worked it out over the weekend, it's not much code actually (as expected).
>
> What was unexpected is that while lookups work in header and footers, %'s do not, so you cannot use formatted dates, end-of-lines and such.
>
> Gary
>
>
> Please read the @doubts. I imagine most of them can be removed at this point.
>
> Ralph
>
> On Sep 22, 2014, at 2:29 AM, Remko Popma <re...@gmail.com> wrote:
>
> > I'm getting a compile error:
> >
> > Interpolator now has this line:
> > + lookups.put("java", new JavaLookup());
> > But the JavaLookup class does not exist...
> >
> >
> > Sent from my iPhone
> >
> >> On 2014/09/22, at 14:29, ggregory@apache.org wrote:
> >>
> >> + lookups.put("java", new JavaLookup());
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-dev-help@logging.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
Re: [2/2] git commit: Javadoc: Replace @doubt with TODO tags. Custom
@'s in Javadoc 8 are not allowed unpackaged and then must exist, and we do
not have them, so just use a "TODO" tag which can then be picked up with the
Maven tag report if we want to add th
Posted by Gary Gregory <ga...@gmail.com>.
On Mon, Sep 22, 2014 at 10:26 AM, Ralph Goers <ra...@dslextreme.com>
wrote:
> I thought Gary recently implemented that.
>
I had talked about it, and worked it out over the weekend, it's not much
code actually (as expected).
What was unexpected is that while lookups work in header and footers, %'s
do not, so you cannot use formatted dates, end-of-lines and such.
Gary
> Please read the @doubts. I imagine most of them can be removed at this
> point.
>
> Ralph
>
> On Sep 22, 2014, at 2:29 AM, Remko Popma <re...@gmail.com> wrote:
>
> > I'm getting a compile error:
> >
> > Interpolator now has this line:
> > + lookups.put("java", new JavaLookup());
> > But the JavaLookup class does not exist...
> >
> >
> > Sent from my iPhone
> >
> >> On 2014/09/22, at 14:29, ggregory@apache.org wrote:
> >>
> >> + lookups.put("java", new JavaLookup());
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-dev-help@logging.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: [2/2] git commit: Javadoc: Replace @doubt with TODO tags. Custom @'s in Javadoc 8 are not allowed unpackaged and then must exist, and we do not have them, so just use a "TODO" tag which can then be picked up with the Maven tag report if we want to add th
Posted by Ralph Goers <ra...@dslextreme.com>.
I thought Gary recently implemented that.
Please read the @doubts. I imagine most of them can be removed at this point.
Ralph
On Sep 22, 2014, at 2:29 AM, Remko Popma <re...@gmail.com> wrote:
> I'm getting a compile error:
>
> Interpolator now has this line:
> + lookups.put("java", new JavaLookup());
> But the JavaLookup class does not exist...
>
>
> Sent from my iPhone
>
>> On 2014/09/22, at 14:29, ggregory@apache.org wrote:
>>
>> + lookups.put("java", new JavaLookup());
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org