protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { if (loggingEvent.MessageObject is string) //per gestione dei log solo stringa su oracle { writer.Write(loggingEvent.RenderedMessage); } else { GenericPatternConverter.Convert <BaseLogInfo>(writer, loggingEvent, "freeTextDetails"); } }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { if (loggingEvent.MessageObject is string) //per la gestione dei log solo stringa su oracle { var method = typeof(BaseLogInfo).GetMethod("PlainToSHA1", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic); if (method != null) { var uniqueId = method.Invoke(null, new object[] { Guid.NewGuid().ToString() }); writer.Write(uniqueId); } } else { GenericPatternConverter.Convert <BaseLogInfo>(writer, loggingEvent, "uniqueLogID"); } }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <BaseLogInfo>(writer, loggingEvent, "logCode"); }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <ErrorLogInfo>(writer, loggingEvent, "passiveparentcodeobjectID"); }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <ErrorLogInfo>(writer, loggingEvent, "objectAppID"); }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <ErrorLogInfo>(writer, loggingEvent, "enanchedInfos"); }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <ErrorLogInfo>(writer, loggingEvent, "passiveapplicationID"); }
protected override void Convert(TextWriter writer, LoggingEvent loggingEvent) { GenericPatternConverter.Convert <MailLogInfo>(writer, loggingEvent, "mobjectID"); }