Esempio n. 1
0
        internal static void RegisterFormatters()
        {
            if (isAnonymous)
            {
                Formatter <TSubject> .RegisterForMembers();
            }

            // register the default formatter for this LogEntry type, which should be the non-generic LogEntry formatter
            Formatter <LogEntry <TSubject> > .Register((e, writer) => Formatter <LogEntry> .Format(e, writer));
        }
Esempio n. 2
0
 internal static void RegisterDefaultLogEntryFormatters()
 {
     Formatter <LogEntry> .RegisterForMembers(
         e => e.CallingType,
         e => e.CallingMethod,
         e => e.ElapsedMilliseconds,
         e => e.Category,
         e => e.ExceptionId,
         e => e.Message,
         e => e.Subject,
         e => e.TimeStamp,
         e => e.Params
         );
 }