Exemple #1
0
 /// <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();
     }
 }
Exemple #2
0
        public static void StartLogger()
        {
            ITraceListener coloredConsoleTraceListener = new ColoredConsoleTraceListener();

            Logger.SetCustomListener(coloredConsoleTraceListener);
            DnsLoggerAdapter.Init(AGDnsApi.ag_log_level.AGLL_DEBUG);
            DnsLoggerAdapter.SetLogger();
        }