/// <summary> /// Initializes the DnsLoggerAdapter with the specified log level /// </summary> /// <param name="logLevel">Log level you'd like to use</param> public void InitLogger(LogLevel logLevel) { lock (SYNC_ROOT) { DnsLoggerAdapter.Init(logLevel); DnsLoggerAdapter.SetLogger(); } }
public static void StartLogger() { ITraceListener coloredConsoleTraceListener = new ColoredConsoleTraceListener(); Logger.SetCustomListener(coloredConsoleTraceListener); DnsLoggerAdapter.Init(AGDnsApi.ag_log_level.AGLL_DEBUG); DnsLoggerAdapter.SetLogger(); }