logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: layout optional?
Date Tue, 10 Nov 2015 15:53:31 GMT
Log4j Appenders usually create a default layout if one is not configured.

On Nov 10, 2015 7:22 AM, "Nicholas Duane" <nickdu@msn.com> wrote:

> From reading the log4j2/log4net docs it appears adding a layout to an
> appender is optional.  If I don't add a layout to an appender how does the
> appender generate the string for the event?  Does it simply call
> toString()/ToString() on the event object?  If that's the case then if we
> want our event to have a specific format by default then I guess we need to
> code that in toString()/ToString(), correct?
> Thanks,
> Nick

View raw message