C# Class Hardly.Log

Mostra file Open project: hardlydifficult/HardlyBot

Public Methods

Method Description
DeregisterListener ( Action listener ) : void
RegisterListener ( Action listener, MessageType type ) : void
error ( string message, Exception e = null ) : void
exception ( Exception e ) : void
fatal ( string message, Exception e = null ) : void
info ( string message, Exception e = null ) : void

Private Methods

Method Description
ObserveMessage ( MessageType type, string message, Exception e ) : void
debug ( string message, Exception e = null ) : void
getListeners ( MessageType type ) : LinkedList>[]

Method Details

DeregisterListener() public static method

public static DeregisterListener ( Action listener ) : void
listener Action
return void

RegisterListener() public static method

public static RegisterListener ( Action listener, MessageType type ) : void
listener Action
type MessageType
return void

error() public static method

public static error ( string message, Exception e = null ) : void
message string
e System.Exception
return void

exception() public static method

public static exception ( Exception e ) : void
e System.Exception
return void

fatal() public static method

public static fatal ( string message, Exception e = null ) : void
message string
e System.Exception
return void

info() public static method

public static info ( string message, Exception e = null ) : void
message string
e System.Exception
return void