C# Класс Plugin.Debug

Provides functionality for logging information
Показать файл Открыть проект

Открытые методы

Метод Описание
AddChannel ( string name ) : int

Registers a new channel for use

DeleteChannel ( int channel ) : void

Deletes a channel

DisableCaching ( ) : void

Disables Caching. This will clear the cache. Cached messaged will be stored in Cache

DisableChannel ( int channel ) : void

Disables a channel. Disabled channels messages will not get logged

EnableCaching ( ) : void

Enabled Caching. This will clear the cache. Cached messaged will be stored in Cache

EnableChannel ( int channel ) : void

Enabled a channel. Enabled channels messages will get logged

GetChannelId ( string name ) : int

Returns the assigned channel id of a registered channel

GetChannelName ( int channel ) : string

Returns to corresponding channel name of a identifier

Log ( int channel, string message ) : void

Loggs a message. The message will only cause the MessageListened event to occur if the calling channel is enabled

Описание методов

AddChannel() публичный статический Метод

Registers a new channel for use
public static AddChannel ( string name ) : int
name string The name of the channel
Результат int

DeleteChannel() публичный статический Метод

Deletes a channel
public static DeleteChannel ( int channel ) : void
channel int The int identifier of the channel
Результат void

DisableCaching() публичный статический Метод

Disables Caching. This will clear the cache. Cached messaged will be stored in Cache
public static DisableCaching ( ) : void
Результат void

DisableChannel() публичный статический Метод

Disables a channel. Disabled channels messages will not get logged
public static DisableChannel ( int channel ) : void
channel int The channel identifier
Результат void

EnableCaching() публичный статический Метод

Enabled Caching. This will clear the cache. Cached messaged will be stored in Cache
public static EnableCaching ( ) : void
Результат void

EnableChannel() публичный статический Метод

Enabled a channel. Enabled channels messages will get logged
public static EnableChannel ( int channel ) : void
channel int The channel identifier
Результат void

GetChannelId() публичный статический Метод

Returns the assigned channel id of a registered channel
public static GetChannelId ( string name ) : int
name string The channels name
Результат int

GetChannelName() публичный статический Метод

Returns to corresponding channel name of a identifier
public static GetChannelName ( int channel ) : string
channel int The channels identifier
Результат string

Log() публичный статический Метод

Loggs a message. The message will only cause the MessageListened event to occur if the calling channel is enabled
public static Log ( int channel, string message ) : void
channel int The calling channel
message string The channels message
Результат void