DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb-nunit
Deveel.Diagnostics
ConsoleLogger.cs
Go to the documentation of this file.
1
using
System
;
2
3
using
Deveel
.
Data
.
Configuration
;
4
5
namespace
Deveel
.Diagnostics {
6
public
class
ConsoleLogger
: ILogger {
7
public
void
Dispose
() {
8
}
9
10
public
void
Init
(IDbConfig config) {
11
}
12
13
public
bool
IsInterestedIn
(
LogLevel
level) {
14
return
true
;
15
}
16
17
public
void
Log
(LogEntry entry) {
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
}
25
}
26
}
Deveel
System
Definition:
NonSerializedAttribute.cs:3
Deveel.Diagnostics.ConsoleLogger.Init
void Init(IDbConfig config)
Definition:
ConsoleLogger.cs:10
Deveel.Data.Diagnostics.LogLevel
LogLevel
The level listened by a diagnostic logger
Definition:
LogLevel.cs:23
Deveel.Diagnostics.ConsoleLogger.Dispose
void Dispose()
Definition:
ConsoleLogger.cs:7
Deveel.Diagnostics.ConsoleLogger.Log
void Log(LogEntry entry)
Definition:
ConsoleLogger.cs:17
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Configuration
Definition:
ConfigGroup.cs:19
Deveel.Diagnostics.ConsoleLogger
Definition:
ConsoleLogger.cs:6
Deveel.Diagnostics.ConsoleLogger.IsInterestedIn
bool IsInterestedIn(LogLevel level)
Definition:
ConsoleLogger.cs:13
Generated by
1.8.10