Ejemplo n.º 1
0
        //private int[] enabledLogLevels  = new int[] {2, 3, 4, 5};

        //private Dictionary<LogLevel, string[]> logFilters = new Dictionary<LogLevel, string[]>();

        public ToolkitLogProvider(IServiceScopeFactory services, IGlobalLogConfiguration globalLogCfg)
        {
            this.services     = services;
            this.globalLogCfg = globalLogCfg;
            LogEnvironment.RegisterLogTarget(this);
            timer = new Timer(DumpEvents, null, 10000, Timeout.Infinite);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the LogTarget class
 /// </summary>
 protected LogTarget()
 {
     LogEnvironment.RegisterLogTarget(this);
 }