DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Diagnostics.ConsoleLogger Class Reference
Inheritance diagram for Deveel.Diagnostics.ConsoleLogger:

Public Member Functions

void Dispose ()
 
void Init (IDbConfig config)
 
bool IsInterestedIn (LogLevel level)
 
void Log (LogEntry entry)
 

Detailed Description

Definition at line 6 of file ConsoleLogger.cs.

Member Function Documentation

void Deveel.Diagnostics.ConsoleLogger.Dispose ( )
inline

Definition at line 7 of file ConsoleLogger.cs.

7  {
8  }
void Deveel.Diagnostics.ConsoleLogger.Init ( IDbConfig  config)
inline

Definition at line 10 of file ConsoleLogger.cs.

10  {
11  }
bool Deveel.Diagnostics.ConsoleLogger.IsInterestedIn ( LogLevel  level)
inline

Definition at line 13 of file ConsoleLogger.cs.

13  {
14  return true;
15  }
void Deveel.Diagnostics.ConsoleLogger.Log ( LogEntry  entry)
inline

Definition at line 17 of file ConsoleLogger.cs.

17  {
18  Console.Out.WriteLine("[{0}] {1:s} ({2}) - {3}", entry.Level.Name, entry.Time, entry.Source, entry.Message);
19 
20  if (entry.HasError) {
21  Console.Out.WriteLine(entry.Error.Message);
22  Console.Out.WriteLine(entry.Error.StackTrace);
23  }
24  }

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