Open sandboxFocus

Method Get

Get()

Gets a LogSource for the calling type.

Declaration
public static LogSource Get()
Returns
Type Description
LogSource

A LogSource for the calling type.

Get(string)

Gets a log source associated with a specific source name.

Declaration
public static LogSource Get(string sourceName)
Parameters
Type Name Description
string sourceName

Name that the logging backend associates with a log source.

Returns
Type Description
LogSource

Get(string, string)

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

Declaration
public static LogSource Get(string sourceName, string role = null)
Parameters
Type Name Description
string sourceName

The source name. A dotted name.

string role

A role name. See LoggingRoles.

Returns
Type Description
LogSource

Get(Type, string)

Gets a log source for a specified role and Type.

Declaration
public static LogSource Get(Type type, string role = null)
Parameters
Type Name Description
Type type

The type.

string role

See LoggingRoles.

Returns
Type Description
LogSource