| LogManagerGetLogger Method |
Gets the specified named logger.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static Logger GetLogger(
string name
)
Public Shared Function GetLogger (
name As String
) As Logger
Dim name As String
Dim returnValue As Logger
returnValue = LogManager.GetLogger(name)
static 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 aren't guaranteed to return the same logger reference.
See Also