Table of Contents

Class LoggingExtensions

Namespace
LinqToDB.Common.Logging
Assembly
linq2db.dll
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 IDataContext

Context 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 IDataContext

Context instance.

message string

Message text.

category string

Message category.

level TraceLevel

Trace level.