C# Class Common.Logging.Simple.AbstractSimpleLoggerFactoryAdapter

Inheritance: Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter
显示文件 Open project: net-commons/common-logging

Private Properties

Property Type Description

Protected Methods

Method Description
AbstractSimpleLoggerFactoryAdapter ( LogLevel level, bool showDateTime, bool showLogName, bool showLevel, string dateTimeFormat ) : Common.Logging.Factory

Initializes a new instance of the AbstractSimpleLoggerFactoryAdapter class with default settings for the loggers created by this factory.

AbstractSimpleLoggerFactoryAdapter ( NameValueCollection properties ) : Common.Logging.Factory

Initializes a new instance of the AbstractSimpleLoggerFactoryAdapter class.

Looks for level, showDateTime, showLogName, dateTimeFormat items from for use when the GetLogger methods are called. System.Configuration.ConfigurationManager for more information on how to use the standard .NET application configuration file (App.config/Web.config) to configure this adapter.

CreateLogger ( string name ) : ILog

Create the specified logger instance

CreateLogger ( string name, LogLevel level, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : ILog

Derived factories need to implement this method to create the actual logger instance.

Method Details

AbstractSimpleLoggerFactoryAdapter() protected method

Initializes a new instance of the AbstractSimpleLoggerFactoryAdapter class with default settings for the loggers created by this factory.
protected AbstractSimpleLoggerFactoryAdapter ( LogLevel level, bool showDateTime, bool showLogName, bool showLevel, string dateTimeFormat ) : Common.Logging.Factory
level LogLevel
showDateTime bool
showLogName bool
showLevel bool
dateTimeFormat string
return Common.Logging.Factory

AbstractSimpleLoggerFactoryAdapter() protected method

Initializes a new instance of the AbstractSimpleLoggerFactoryAdapter class.
Looks for level, showDateTime, showLogName, dateTimeFormat items from for use when the GetLogger methods are called. System.Configuration.ConfigurationManager for more information on how to use the standard .NET application configuration file (App.config/Web.config) to configure this adapter.
protected AbstractSimpleLoggerFactoryAdapter ( NameValueCollection properties ) : Common.Logging.Factory
properties NameValueCollection The key value collection, typically specified by the user in /// a configuration section named common/logging.
return Common.Logging.Factory

CreateLogger() protected method

Create the specified logger instance
protected CreateLogger ( string name ) : ILog
name string
return ILog

CreateLogger() protected abstract method

Derived factories need to implement this method to create the actual logger instance.
protected abstract CreateLogger ( string name, LogLevel level, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : ILog
name string
level LogLevel
showLevel bool
showDateTime bool
showLogName bool
dateTimeFormat string
return ILog