MetalamaAPI documentationFlashtrace APIFlashtraceIFlashtrace­Role­Logger­FactoryGet­Logger
Open sandboxFocus

IFlashtraceRoleLoggerFactory.GetLogger Method

GetLogger(Type)

Gets an instance of the IFlashtraceLogger for a specific System.Type.

Declaration
IFlashtraceLogger GetLogger(Type type)
Parameters
Type Name Description
System.Type type

The type of the source code that will emit the records.

Returns
Type Description
IFlashtraceLogger

An instance of the IFlashtraceLogger interface for type.

GetLogger(String)

Gets an instance of the IFlashtraceLogger interface for a specific sourceName. The name will usually, but not always, be a type name.

Declaration
IFlashtraceLogger GetLogger(string sourceName)
Parameters
Type Name Description
System.String sourceName

Name identifying the returned logger. The backend creates a logger based on this name.

Returns
Type Description
IFlashtraceLogger