C# Class Castle.Core.Logging.ConsoleLogger

Inheritance: LevelFilteredLogger
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
ConsoleLogger ( ) : System

Creates a new ConsoleLogger with the Level set to LoggerLevel.Debug and the Name set to String.Empty.

ConsoleLogger ( LoggerLevel logLevel ) : System

Creates a new ConsoleLogger with the Name set to String.Empty.

ConsoleLogger ( String name ) : System

Creates a new ConsoleLogger with the Level set to LoggerLevel.Debug.

ConsoleLogger ( String name, LoggerLevel logLevel ) : System

Creates a new ConsoleLogger.

CreateChildLogger ( string newName ) : ILogger

Returns a new ConsoleLogger with the name added after this loggers name, with a dot in between.

Protected Methods

Method Description
Log ( LoggerLevel level, String name, String message, Exception exception ) : void

A Common method to log.

Method Details

ConsoleLogger() public method

Creates a new ConsoleLogger with the Level set to LoggerLevel.Debug and the Name set to String.Empty.
public ConsoleLogger ( ) : System
return System

ConsoleLogger() public method

Creates a new ConsoleLogger with the Name set to String.Empty.
public ConsoleLogger ( LoggerLevel logLevel ) : System
logLevel LoggerLevel The logs Level.
return System

ConsoleLogger() public method

Creates a new ConsoleLogger with the Level set to LoggerLevel.Debug.
public ConsoleLogger ( String name ) : System
name String The logs Name.
return System

ConsoleLogger() public method

Creates a new ConsoleLogger.
public ConsoleLogger ( String name, LoggerLevel logLevel ) : System
name String The logs Name.
logLevel LoggerLevel The logs Level.
return System

CreateChildLogger() public method

Returns a new ConsoleLogger with the name added after this loggers name, with a dot in between.
public CreateChildLogger ( string newName ) : ILogger
newName string The added hierarchical name.
return ILogger

Log() protected method

A Common method to log.
protected Log ( LoggerLevel level, String name, String message, Exception exception ) : void
level LoggerLevel The level of logging
name String The name of the logger
message String The Message
exception System.Exception The Exception
return void