Open sandboxFocus

Method Get

Get()

Gets a FlashtraceSource for the calling type.

Declaration
[Obsolete("Use ILoggerFactory.GetLogSource.")]
public static FlashtraceSource Get()
Returns
Type Description
FlashtraceSource

A FlashtraceSource for the calling type.

Get(string)

Gets a log source associated with a specific source name.

Declaration
[Obsolete("Use ILoggerFactory.GetLogSource.")]
public static FlashtraceSource Get(string sourceName)
Parameters
Type Name Description
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
[Obsolete("Use ILoggerFactory.GetLogSource.")]
public static FlashtraceSource Get(string sourceName, FlashtraceRole? role)
Parameters
Type Name Description
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 Type.

Declaration
[Obsolete("Use ILoggerFactory.GetLogSource.")]
public static FlashtraceSource Get(Type type, FlashtraceRole? role = null)
Parameters
Type Name Description
Type type

The type.

FlashtraceRole role

See FlashtraceRole.

Returns
Type Description
FlashtraceSource