Sample .NET CIL extension: a custom logger
This is a simple null logger.
// A simple null logger
public class LogProvider : ILogger
{
public void Error(string message, Exception ex = null)
{
}
public void ErrorOnce(string message, Exception ex = null)
{
}
public void Warn(string message, Exception ex = null)
{
}
public void Info(string message, Exception ex = null)
{
}
public void Debug(string message, Exception ex = null)
{
}
public void Trace(string message, Exception ex = null)
{
}
public bool AllowTrace { get; } = false;
public bool AllowDebug { get; } = false;
public bool AllowError { get; } = false;
public bool AllowInfo { get; } = false;
public bool AllowWarn { get; } = false;
}
where:
- HOSTNAME is the name of the host on which the Discovery Service runs
- PORT is the port in which the Discovery Service runs (8082 by default)
- USER is the name of a user who can connect to the Discovery Service (
cduserby default) - PASSWORD is a valid password for USER.