C# Класс log4net.Ext.MarshalByRef.MarshalByRefLogManager

LogManager that returns MarshalByRefLogImpl loggers.
Показать файл Открыть проект

Открытые методы

Метод Описание
Exists ( Assembly assembly, string name ) : log4net.ILog

Returns the named logger if it exists

If the named logger exists (in the specified assembly's domain) then it returns a reference to the logger, otherwise it returns null.

Exists ( string name ) : log4net.ILog

Returns the named logger if it exists

If the named logger exists (in the default hierarchy) then it returns a reference to the logger, otherwise it returns null.

Exists ( string domain, string name ) : log4net.ILog

Returns the named logger if it exists

If the named logger exists (in the specified domain) then it returns a reference to the logger, otherwise it returns null.

GetCurrentLoggers ( ) : log4net.ILog[]

Returns all the currently defined loggers in the default domain.

The root logger is not included in the returned array.

GetCurrentLoggers ( Assembly assembly ) : log4net.ILog[]

Returns all the currently defined loggers in the specified assembly's domain.

The root logger is not included in the returned array.

GetCurrentLoggers ( string domain ) : log4net.ILog[]

Returns all the currently defined loggers in the specified domain.

The root logger is not included in the returned array.

GetLogger ( Assembly assembly, Type type ) : log4net.ILog

Shorthand for LogManager.GetLogger(string).

Get the logger for the fully qualified name of the type specified.

GetLogger ( Assembly assembly, string name ) : log4net.ILog

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

GetLogger ( Type type ) : log4net.ILog

Shorthand for LogManager.GetLogger(string).

Get the logger for the fully qualified name of the type specified.

GetLogger ( string name ) : log4net.ILog

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

GetLogger ( string domain, Type type ) : log4net.ILog

Shorthand for LogManager.GetLogger(string).

Get the logger for the fully qualified name of the type specified.

GetLogger ( string domain, string name ) : log4net.ILog

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

WrapLogger ( ILogger logger ) : log4net.ILog

Lookup the wrapper object for the logger specified

WrapLoggers ( ILogger loggers ) : log4net.ILog[]

Lookup the wrapper objects for the loggers specified

Приватные методы

Метод Описание
MarshalByRefLogManager ( ) : System

Private constructor to prevent object creation

WrapperCreationHandler ( ILogger logger ) : ILoggerWrapper

Method to create the ILoggerWrapper objects used by this manager.

Описание методов

Exists() публичный статический Метод

Returns the named logger if it exists

If the named logger exists (in the specified assembly's domain) then it returns a reference to the logger, otherwise it returns null.

public static Exists ( Assembly assembly, string name ) : log4net.ILog
assembly System.Reflection.Assembly the assembly to use to lookup the domain
name string The fully qualified logger name to look for
Результат log4net.ILog

Exists() публичный статический Метод

Returns the named logger if it exists

If the named logger exists (in the default hierarchy) then it returns a reference to the logger, otherwise it returns null.

public static Exists ( string name ) : log4net.ILog
name string The fully qualified logger name to look for
Результат log4net.ILog

Exists() публичный статический Метод

Returns the named logger if it exists

If the named logger exists (in the specified domain) then it returns a reference to the logger, otherwise it returns null.

public static Exists ( string domain, string name ) : log4net.ILog
domain string the domain to lookup in
name string The fully qualified logger name to look for
Результат log4net.ILog

GetCurrentLoggers() публичный статический Метод

Returns all the currently defined loggers in the default domain.

The root logger is not included in the returned array.

public static GetCurrentLoggers ( ) : log4net.ILog[]
Результат log4net.ILog[]

GetCurrentLoggers() публичный статический Метод

Returns all the currently defined loggers in the specified assembly's domain.
The root logger is not included in the returned array.
public static GetCurrentLoggers ( Assembly assembly ) : log4net.ILog[]
assembly System.Reflection.Assembly the assembly to use to lookup the domain
Результат log4net.ILog[]

GetCurrentLoggers() публичный статический Метод

Returns all the currently defined loggers in the specified domain.
The root logger is not included in the returned array.
public static GetCurrentLoggers ( string domain ) : log4net.ILog[]
domain string the domain to lookup in
Результат log4net.ILog[]

GetLogger() публичный статический Метод

Shorthand for LogManager.GetLogger(string).
Get the logger for the fully qualified name of the type specified.
public static GetLogger ( Assembly assembly, Type type ) : log4net.ILog
assembly System.Reflection.Assembly the assembly to use to lookup the domain
type System.Type The full name of will /// be used as the name of the logger to retrieve.
Результат log4net.ILog

GetLogger() публичный статический Метод

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

public static GetLogger ( Assembly assembly, string name ) : log4net.ILog
assembly System.Reflection.Assembly the assembly to use to lookup the domain
name string The name of the logger to retrieve.
Результат log4net.ILog

GetLogger() публичный статический Метод

Shorthand for LogManager.GetLogger(string).
Get the logger for the fully qualified name of the type specified.
public static GetLogger ( Type type ) : log4net.ILog
type System.Type The full name of will /// be used as the name of the logger to retrieve.
Результат log4net.ILog

GetLogger() публичный статический Метод

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

public static GetLogger ( string name ) : log4net.ILog
name string The name of the logger to retrieve.
Результат log4net.ILog

GetLogger() публичный статический Метод

Shorthand for LogManager.GetLogger(string).
Get the logger for the fully qualified name of the type specified.
public static GetLogger ( string domain, Type type ) : log4net.ILog
domain string the domain to lookup in
type System.Type The full name of will /// be used as the name of the logger to retrieve.
Результат log4net.ILog

GetLogger() публичный статический Метод

Retrieve or create a named logger.

Retrieve a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

public static GetLogger ( string domain, string name ) : log4net.ILog
domain string the domain to lookup in
name string The name of the logger to retrieve.
Результат log4net.ILog

WrapLogger() публичный статический Метод

Lookup the wrapper object for the logger specified
public static WrapLogger ( ILogger logger ) : log4net.ILog
logger ILogger the logger to get the wrapper for
Результат log4net.ILog

WrapLoggers() публичный статический Метод

Lookup the wrapper objects for the loggers specified
public static WrapLoggers ( ILogger loggers ) : log4net.ILog[]
loggers ILogger the loggers to get the wrappers for
Результат log4net.ILog[]