public void Render(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText, StringBuilder stringBuilder,
                    ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
 }
Example #2
0
 /// <inheritdoc />
 public override string ToString(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingFuncs.ToFormat(System.Environment.UserName, formatProvider));
 }
Example #3
0
 /// <inheritdoc />
 public override void Render(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText, StringBuilder stringBuilder,
                             ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     stringBuilder.Append(ToString(formattingFuncs, paramsText, logEventInfo, formatProvider));
 }
 /// <inheritdoc />
 public override string ToString(string format, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(FixedEventId(logEventInfo));
 }
 /// <inheritdoc />
 public override string ToString(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingFuncs.ToFormat(GetProcessorCount(), formatProvider));
 }
Example #6
0
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(System.Environment.MachineName, formatProvider));
 }
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetPagedSystemMemorySize(format, paramsText));
 }
Example #8
0
 /// <inheritdoc />
 public override string ToString(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingFuncs.ToFormat(FixedMemberName(logEventInfo), formatProvider));
 }
 /// <inheritdoc />
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetStartFileName());
 }
Example #10
0
 /// <summary>
 /// Get file path
 /// </summary>
 /// <param name="logEventInfo"></param>
 /// <returns></returns>
 public string GetFilePath(ILogEventInfo logEventInfo)
 {
     return(System.IO.Path.Combine(GetRealBasePath(), GetRealTargetPath(logEventInfo)));
 }
Example #11
0
 private static string FixedMemberName(ILogEventInfo logEventInfo = null)
 {
     return(logEventInfo?.CallerInfo.MemberName ?? string.Empty);
 }
Example #12
0
 /// <inheritdoc />
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(GetPagedMemorySize(null, paramsText), formatProvider));
 }
 public string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                        ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null) => string.Empty;
 public string ToString(string format, string paramsText,
                        ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null) => string.Empty;
Example #15
0
 /// <inheritdoc />
 public abstract string ToString(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null);
 /// <inheritdoc />
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetOsStandardVersion());
 }
Example #17
0
 /// <inheritdoc />
 public virtual void Render(IList <FormatEvent> formattingEvents, string paramsText, StringBuilder stringBuilder,
                            ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     stringBuilder.Append(ToString(formattingEvents, paramsText, logEventInfo, formatProvider));
 }
 /// <inheritdoc />
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(GetOsStandardVersion(), formatProvider));
 }
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(GetUserProcessorTime(paramsText), formatProvider));
 }
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetWorkingDirectory());
 }
 public override string ToString(IList <Func <object, IFormatProvider, object> > formattingFuncs, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingFuncs.ToFormat(GetPagedSystemMemorySize(null, paramsText), formatProvider));
 }
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(GetWorkingDirectory(), formatProvider));
 }
 /// <inheritdoc />
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetProcessorCount());
 }
Example #24
0
 /// <inheritdoc />
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(GetProcessStartTime(format, paramsText));
 }
Example #25
0
 /// <inheritdoc />
 public override string ToString(string format, string paramsText, ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(System.Environment.UserName);
 }
Example #26
0
 /// <inheritdoc />
 public abstract string ToString(string format, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null);
Example #27
0
 /// <inheritdoc />
 public override void Render(string format, string paramsText, StringBuilder stringBuilder,
                             ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     stringBuilder.Append(ToString(format, paramsText, logEventInfo, formatProvider));
 }
Example #28
0
 /// <inheritdoc />
 public abstract string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null);
 public override string ToString(IList <FormatEvent> formattingEvents, string paramsText,
                                 ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
     return(formattingEvents.ToFormat(Content, formatProvider));
 }
 public void Render(IList <FormatEvent> formattingEvents, string paramsText, StringBuilder stringBuilder,
                    ILogEventInfo logEventInfo = null, IFormatProvider formatProvider = null)
 {
 }