You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by James Hutton <ja...@gmail.com> on 2014/04/21 14:21:35 UTC

One appender, multiple layouts

Hi,
Still trying to wrap my head around markers a bit, but I was wondering if
it was possible to use a marker to determine which layout the event was
formatted with to the same appender.  If there is any documentation or
examples that would be helpful and most appreciated.

James

Re: One appender, multiple layouts

Posted by James Hutton <ja...@gmail.com>.
Good point. Didn't think of that, thanks! Got to say really liking 2.0.
On Apr 21, 2014 10:06 AM, "Ralph Goers" <rg...@apache.org> wrote:

> No, but it would be easy to create a Layout that wrapped multiple Layouts
> using a Marker ( or something else) to determine which to use.
>
> Ralph
>
> > On Apr 21, 2014, at 5:21 AM, James Hutton <ja...@gmail.com>
> wrote:
> >
> > Hi,
> > Still trying to wrap my head around markers a bit, but I was wondering if
> > it was possible to use a marker to determine which layout the event was
> > formatted with to the same appender.  If there is any documentation or
> > examples that would be helpful and most appreciated.
> >
> > James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Re: One appender, multiple layouts

Posted by Ralph Goers <rg...@apache.org>.
No, but it would be easy to create a Layout that wrapped multiple Layouts using a Marker ( or something else) to determine which to use.

Ralph

> On Apr 21, 2014, at 5:21 AM, James Hutton <ja...@gmail.com> wrote:
> 
> Hi,
> Still trying to wrap my head around markers a bit, but I was wondering if
> it was possible to use a marker to determine which layout the event was
> formatted with to the same appender.  If there is any documentation or
> examples that would be helpful and most appreciated.
> 
> James

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org