Only write exceptions to logger if IgnoresException is set (as per log4net upstream)

This means I can use a JSON layout without this breaking things horribly on an exception, and replicates the existing behaviour of log4net (see https://github.com/apache/log4net/blob/trunk/src/log4net/Appender/AppenderSkeleton.cs#L740)