Ejemplo n.º 1
0
 public Log()
 {
     if (this.ConsoleExists())
     {
         this._log = new FileLog(new ConsoleLog());
     }
     else
     {
         this._log = new FileLog();
     }
 }
Ejemplo n.º 2
0
        public Log()
        {
            this._lock            = new object();
            this._allowedChannels = new bool[Enum.GetNames(typeof(OutputChannel)).Length];
            this.EnableChannel(OutputChannel.Error);

            if (this.ConsoleExists())
            {
                this._log = new FileLog(new ConsoleLog());
            }
            else
            {
                this._log = new FileLog();
            }
        }