Example #1
0
 /// <summary>
 /// <see cref="LoggingFactoryDefinition.GetLoggingFactory"/>.
 /// </summary>
 protected internal override ILoggerFactory GetLoggingFactory()
 {
     var loggerFactory = new DefaultLoggerFactory(level.Value, directory.Value);
     var message = string.Format("Logging to '{0}' with level {1}", directory, level);
     loggerFactory.Write(GetType().Name,LogLevel.Info,message);
     return loggerFactory;
 }
Example #2
0
 /// <summary>
 /// <see cref="LoggingFactoryDefinition.GetLoggingFactory" />.
 /// </summary>
 protected internal override ILoggerFactory GetLoggingFactory()
 {
     var loggerFactory = new DefaultLoggerFactory(level.Value, directory.Value);
     var message = $"Logging to '{directory}' with level {level}";
     loggerFactory.Write(GetType().Name, LogLevel.Info, message);
     return loggerFactory;
 }
Example #3
0
        /// <summary>
        /// <see cref="LoggingFactoryDefinition.GetLoggingFactory" />.
        /// </summary>
        protected internal override ILoggerFactory GetLoggingFactory()
        {
            var loggerFactory = new DefaultLoggerFactory(level.Value, directory.Value);
            var message       = $"Logging to '{directory}' with level {level}";

            loggerFactory.Write(GetType().Name, LogLevel.Info, message);
            return(loggerFactory);
        }
        /// <summary>
        /// <see cref="LoggingFactoryDefinition.GetLoggingFactory"/>.
        /// </summary>
        protected internal override ILoggerFactory GetLoggingFactory()
        {
            var loggerFactory = new DefaultLoggerFactory(level, directory);
            var message       = string.Format("Logging to '{0}' with level {1}", directory, level);

            loggerFactory.Write(GetType().Name, LogLevel.Info, message);
            return(loggerFactory);
        }
Example #5
0
 public NamedLogger(string name, DefaultLoggerFactory defaultLoggerFactory)
 {
     this.name = name;
     this.defaultLoggerFactory = defaultLoggerFactory;
 }
Example #6
0
 public NamedLogger(string name, DefaultLoggerFactory defaultLoggerFactory)
 {
     this.name = name;
     this.defaultLoggerFactory = defaultLoggerFactory;
 }