C# Class Castle.Core.Logging.NullLogger

The Null Logger class. This is useful for implementations where you need to provide a logger to a utility class, but do not want any output from it. It also helps when you have a utility that does not have a logger to supply.
Inheritance: IExtendedLogger
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Properties

Property Type Description
Instance NullLogger

Private Properties

Property Type Description
FatalError void
FatalError void

Public Methods

Method Description
CreateChildLogger ( string name ) : ILogger

Returns this NullLogger.

Debug ( string message ) : void

No-op.

Debug ( string message, Exception exception ) : void

No-op.

DebugFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void

No-op.

DebugFormat ( Exception exception, string format ) : void

No-op.

DebugFormat ( IFormatProvider formatProvider, string format ) : void

No-op.

DebugFormat ( string format ) : void

No-op.

Error ( string message ) : void

No-op.

Error ( string message, Exception exception ) : void

No-op.

ErrorFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void

No-op.

ErrorFormat ( Exception exception, string format ) : void

No-op.

ErrorFormat ( IFormatProvider formatProvider, string format ) : void

No-op.

ErrorFormat ( string format ) : void

No-op.

Fatal ( string message ) : void

No-op.

Fatal ( string message, Exception exception ) : void

No-op.

FatalFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void

No-op.

FatalFormat ( Exception exception, string format ) : void

No-op.

FatalFormat ( IFormatProvider formatProvider, string format ) : void

No-op.

FatalFormat ( string format ) : void

No-op.

Info ( string message ) : void

No-op.

Info ( string message, Exception exception ) : void

No-op.

InfoFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void

No-op.

InfoFormat ( Exception exception, string format ) : void

No-op.

InfoFormat ( IFormatProvider formatProvider, string format ) : void

No-op.

InfoFormat ( string format ) : void

No-op.

NullLogger ( ) : System

Creates a new NullLogger.

Warn ( string message ) : void

No-op.

Warn ( string message, Exception exception ) : void

No-op.

WarnFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void

No-op.

WarnFormat ( Exception exception, string format ) : void

No-op.

WarnFormat ( IFormatProvider formatProvider, string format ) : void

No-op.

WarnFormat ( string format ) : void

No-op.

Private Methods

Method Description
FatalError ( string message ) : void
FatalError ( string message, Exception exception ) : void

Method Details

CreateChildLogger() public method

Returns this NullLogger.
public CreateChildLogger ( string name ) : ILogger
name string Ignored
return ILogger

Debug() public method

No-op.
public Debug ( string message ) : void
message string Ignored
return void

Debug() public method

No-op.
public Debug ( string message, Exception exception ) : void
message string Ignored
exception System.Exception Ignored
return void

DebugFormat() public method

No-op.
public DebugFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void
exception System.Exception Ignored
formatProvider IFormatProvider Ignored
format string Ignored
return void

DebugFormat() public method

No-op.
public DebugFormat ( Exception exception, string format ) : void
exception System.Exception Ignored
format string Ignored
return void

DebugFormat() public method

No-op.
public DebugFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider Ignored
format string Ignored
return void

DebugFormat() public method

No-op.
public DebugFormat ( string format ) : void
format string Ignored
return void

Error() public method

No-op.
public Error ( string message ) : void
message string Ignored
return void

Error() public method

No-op.
public Error ( string message, Exception exception ) : void
message string Ignored
exception System.Exception Ignored
return void

ErrorFormat() public method

No-op.
public ErrorFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void
exception System.Exception Ignored
formatProvider IFormatProvider Ignored
format string Ignored
return void

ErrorFormat() public method

No-op.
public ErrorFormat ( Exception exception, string format ) : void
exception System.Exception Ignored
format string Ignored
return void

ErrorFormat() public method

No-op.
public ErrorFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider Ignored
format string Ignored
return void

ErrorFormat() public method

No-op.
public ErrorFormat ( string format ) : void
format string Ignored
return void

Fatal() public method

No-op.
public Fatal ( string message ) : void
message string Ignored
return void

Fatal() public method

No-op.
public Fatal ( string message, Exception exception ) : void
message string Ignored
exception System.Exception Ignored
return void

FatalFormat() public method

No-op.
public FatalFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void
exception System.Exception Ignored
formatProvider IFormatProvider Ignored
format string Ignored
return void

FatalFormat() public method

No-op.
public FatalFormat ( Exception exception, string format ) : void
exception System.Exception Ignored
format string Ignored
return void

FatalFormat() public method

No-op.
public FatalFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider Ignored
format string Ignored
return void

FatalFormat() public method

No-op.
public FatalFormat ( string format ) : void
format string Ignored
return void

Info() public method

No-op.
public Info ( string message ) : void
message string Ignored
return void

Info() public method

No-op.
public Info ( string message, Exception exception ) : void
message string Ignored
exception System.Exception Ignored
return void

InfoFormat() public method

No-op.
public InfoFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void
exception System.Exception Ignored
formatProvider IFormatProvider Ignored
format string Ignored
return void

InfoFormat() public method

No-op.
public InfoFormat ( Exception exception, string format ) : void
exception System.Exception Ignored
format string Ignored
return void

InfoFormat() public method

No-op.
public InfoFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider Ignored
format string Ignored
return void

InfoFormat() public method

No-op.
public InfoFormat ( string format ) : void
format string Ignored
return void

NullLogger() public method

Creates a new NullLogger.
public NullLogger ( ) : System
return System

Warn() public method

No-op.
public Warn ( string message ) : void
message string Ignored
return void

Warn() public method

No-op.
public Warn ( string message, Exception exception ) : void
message string Ignored
exception System.Exception Ignored
return void

WarnFormat() public method

No-op.
public WarnFormat ( Exception exception, IFormatProvider formatProvider, string format ) : void
exception System.Exception Ignored
formatProvider IFormatProvider Ignored
format string Ignored
return void

WarnFormat() public method

No-op.
public WarnFormat ( Exception exception, string format ) : void
exception System.Exception Ignored
format string Ignored
return void

WarnFormat() public method

No-op.
public WarnFormat ( IFormatProvider formatProvider, string format ) : void
formatProvider IFormatProvider Ignored
format string Ignored
return void

WarnFormat() public method

No-op.
public WarnFormat ( string format ) : void
format string Ignored
return void

Property Details

Instance public static property

public static NullLogger,Castle.Core.Logging Instance
return NullLogger