A Sandcastle Documented Class Library
![]() | LoggingExtensionsLogT Method |
Extention method to allow objects to access logger with Log().
Namespace: Tego.Logging
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

public static ILogger Log<T>( this T objectToLog )
<ExtensionAttribute> Public Shared Function Log(Of T) ( objectToLog As T ) As ILogger
public: [ExtensionAttribute] generic<typename T> static ILogger^ Log( T objectToLog )
[<ExtensionAttribute>] static member Log : objectToLog : 'T -> ILogger
Parameters
- objectToLog
- Type: T
Object
Type Parameters
- T
- Type of Logger
Return Value
Type: ILoggerInstance of Logger
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).