public override void OnException(MethodExecutionArgs args) { if (args == null) throw new ArgumentNullException("args"); if (!_shouldLog) return; args.FlowBehavior = FlowBehavior.RethrowException; LoggingInfo info = GetLoggingInfo(); string message = MessageFormatter.FormatMessage(Output, args, "Exception", info); Logger.Error(message, args.Exception); }