Esempio n. 1
0
        public ILog GetLogger(string name)
        {
            ILog log = this._logs[name] as ILog;

            if (log == null)
            {
                log = new ConsoleOutLogger(name, this._Level, this._showDateTime, this._showLogName, this._dateTimeFormat);
                this._logs.Add(name, log);
            }
            return(log);
        }
 /// <summary>
 /// Get a ILog instance by name.
 /// </summary>
 /// <param name="name">Usually a <see cref="Type" />'s Name or FullName property.</param>
 /// <returns>An ILog instance that will write data to <see cref="Console.Out" />.</returns>
 public ILog GetLogger(string name)
 {
     ILog log = _logs[name] as ILog;
     if ( log == null )
     {
         log = new ConsoleOutLogger( name, _Level, _showDateTime, _showLogName, _dateTimeFormat );
         _logs.Add( name, log );
     }
     return log;
 }