Class LoggingExtensions
public static class LoggingExtensions
- Inheritance
-
LoggingExtensions
Methods
GetTraceSwitch(IDataContext)
Returns TraceSwitch tracing options, used by provided context.
public static TraceSwitch GetTraceSwitch(this IDataContext context)
Parameters
context
IDataContextContext instance.
Returns
- TraceSwitch
TraceSwitch instance, used for tracing by provided context.
WriteTraceLine(IDataContext, string, string, TraceLevel)
Write line to trace associated with provided context.
public static void WriteTraceLine(this IDataContext context, string message, string category, TraceLevel level)
Parameters
context
IDataContextContext instance.
message
stringMessage text.
category
stringMessage category.
level
TraceLevelTrace level.