 | LogFactoryGetLogger Method (String) |
Gets the specified named logger.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic Logger GetLogger(
string name
)
Public Function GetLogger (
name As String
) As Logger
Dim instance As LogFactory
Dim name As String
Dim returnValue As Logger
returnValue = instance.GetLogger(name)
member GetLogger :
name : string -> Logger
Parameters
- name
- Type: SystemString
Name of the logger.
Return Value
Type:
LoggerThe logger reference. Multiple calls to
GetLogger with the same argument
are not guaranteed to return the same logger reference.
See Also