Craig's Utility Library  4.0 Beta
Utilities.IO.Logging.BaseClasses.LoggerBase Class Referenceabstract

Logger base More...

Inheritance diagram for Utilities.IO.Logging.BaseClasses.LoggerBase:
Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass Utilities.IO.Logging.Interfaces.ILogger Utilities.IO.Logging.Default.DefaultLogger

Public Member Functions

abstract void AddLog (string Name="Default")
 Adds a log object or replaces one already in use More...
 
ILog GetLog (string Name="Default")
 Gets a specified log More...
 
override string ToString ()
 String representation of the logger More...
 
- Public Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass
void Dispose ()
 Dispose function More...
 

Protected Member Functions

 LoggerBase ()
 Constructor More...
 
override void Dispose (bool Managed)
 Disposes of the objects More...
 
- Protected Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass
 SafeDisposableBaseClass ()
 Construct More...
 

Properties

IDictionary< string, ILogLogs [get]
 Called to log the current message More...
 
abstract string Name [get]
 Name of the logger More...
 
- Properties inherited from Utilities.IO.Logging.Interfaces.ILogger
IDictionary< string, ILogLogs [get]
 Logs held by the logger More...
 
string Name [get]
 Name of the logger More...
 

Detailed Description

Logger base

Definition at line 33 of file LoggerBase.cs.

Constructor & Destructor Documentation

Utilities.IO.Logging.BaseClasses.LoggerBase.LoggerBase ( )
protected

Constructor

Definition at line 38 of file LoggerBase.cs.

Member Function Documentation

abstract void Utilities.IO.Logging.BaseClasses.LoggerBase.AddLog ( string  Name = "Default")
pure virtual

Adds a log object or replaces one already in use

Parameters
NameThe name of the log file

Implements Utilities.IO.Logging.Interfaces.ILogger.

Implemented in Utilities.IO.Logging.Default.DefaultLogger.

override void Utilities.IO.Logging.BaseClasses.LoggerBase.Dispose ( bool  Managed)
protectedvirtual

Disposes of the objects

Parameters
ManagedTrue to dispose of all resources, false only disposes of native resources

Implements Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass.

Definition at line 86 of file LoggerBase.cs.

ILog Utilities.IO.Logging.BaseClasses.LoggerBase.GetLog ( string  Name = "Default")

Gets a specified log

Parameters
NameThe name of the log file
Returns
The log file specified

Implements Utilities.IO.Logging.Interfaces.ILogger.

Definition at line 64 of file LoggerBase.cs.

override string Utilities.IO.Logging.BaseClasses.LoggerBase.ToString ( )

String representation of the logger

Returns
The name of the logger

Definition at line 75 of file LoggerBase.cs.

Property Documentation

IDictionary<string, ILog> Utilities.IO.Logging.BaseClasses.LoggerBase.Logs
get

Called to log the current message

Definition at line 46 of file LoggerBase.cs.

abstract string Utilities.IO.Logging.BaseClasses.LoggerBase.Name
get

Name of the logger

Definition at line 51 of file LoggerBase.cs.


The documentation for this class was generated from the following file: