 | LogFactoryGetCurrentClassLoggerT Method |
Gets the logger with the name of the current class.
Namespace: NLogAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntaxpublic T GetCurrentClassLogger<T>()
where T : Logger
Public Function GetCurrentClassLogger(Of T As Logger) As T
Type Parameters
- T
- Type of the logger
Return Value
Type:
TThe logger with type
T.
RemarksThis is a slow-running method.
Make sure you're not doing this in a loop.
See Also