C# Class Plugin.Debug

Provides functionality for logging information
Afficher le fichier Open project: Silveryard/SmartHome

Méthodes publiques

Méthode Description
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

Method Details

AddChannel() public static méthode

Registers a new channel for use
public static AddChannel ( string name ) : int
name string The name of the channel
Résultat int

DeleteChannel() public static méthode

Deletes a channel
public static DeleteChannel ( int channel ) : void
channel int The int identifier of the channel
Résultat void

DisableCaching() public static méthode

Disables Caching. This will clear the cache. Cached messaged will be stored in Cache
public static DisableCaching ( ) : void
Résultat void

DisableChannel() public static méthode

Disables a channel. Disabled channels messages will not get logged
public static DisableChannel ( int channel ) : void
channel int The channel identifier
Résultat void

EnableCaching() public static méthode

Enabled Caching. This will clear the cache. Cached messaged will be stored in Cache
public static EnableCaching ( ) : void
Résultat void

EnableChannel() public static méthode

Enabled a channel. Enabled channels messages will get logged
public static EnableChannel ( int channel ) : void
channel int The channel identifier
Résultat void

GetChannelId() public static méthode

Returns the assigned channel id of a registered channel
public static GetChannelId ( string name ) : int
name string The channels name
Résultat int

GetChannelName() public static méthode

Returns to corresponding channel name of a identifier
public static GetChannelName ( int channel ) : string
channel int The channels identifier
Résultat string

Log() public static méthode

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
Résultat void