Example in C#

The following is an example of a DummyLogger in C#. You'll note that when Log is called nothing happens.

enum LogLevel
{
None = 0,
Error = 1,
Warning = 2,
Success = 3,
Info = 4
}

interface ILogger
{
void Log(LogLevel type, string message);
}

class DummyLogger: ILogger
{
public void Log(LogLevel type, string message)
{
// Do Nothing
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.30.19