MetalamaAPI documentationFlashtrace APIFlashtraceFlashtrace­SourceGet
Open sandboxFocus

FlashtraceSource.Get Method

Get()

Gets a FlashtraceSource for the calling type.

Declaration
public static FlashtraceSource Get()
Returns
Type Description
FlashtraceSource

A FlashtraceSource for the calling type.

Get(in CallerInfo)

Declaration
public static FlashtraceSource Get(in CallerInfo callerInfo)
Parameters
Type Name Description
CallerInfo callerInfo
Returns
Type Description
FlashtraceSource

Get(String)

Gets a log source associated with a specific source name.

Declaration
public static FlashtraceSource Get(string sourceName)
Parameters
Type Name Description
System.String sourceName

Name that the logging backend associates with a log source.

Returns
Type Description
FlashtraceSource

Get(String, FlashtraceRole)

Gets a log source for a specified role and source name.

Declaration
public static FlashtraceSource Get(string sourceName, FlashtraceRole role)
Parameters
Type Name Description
System.String sourceName

The source name. A dotted name.

FlashtraceRole role

A role name. See FlashtraceRole.

Returns
Type Description
FlashtraceSource

Get(Type, FlashtraceRole)

Gets a log source for a specified role and System.Type.

Declaration
public static FlashtraceSource Get(Type type, FlashtraceRole role = null)
Parameters
Type Name Description
System.Type type

The type.

FlashtraceRole role

See FlashtraceRole.

Returns
Type Description
FlashtraceSource