Skip to content

Commit 2eca189

Browse files
authored
Update ILogger.md
1 parent 11b0893 commit 2eca189

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/usage/ILogger.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ILogger
2+
3+
DDS.Net.Connector.Interfaces.**ILogger** is the main logging interface used by the library. The interface is simple and only includes three methods:
4+
5+
* void Info(string message) - Used to write information-level message to log.
6+
* void Warning(string message) - Used to write warning-level message to log.
7+
* void Error(string message) - Used to write error-level message to log.
8+
9+
 
10+
11+
For simplicity, the library includes following default implementations for the interface:
12+
13+
* DDS.Net.Connector.Interfaces.DefaultLogger.**BlankLogger** - discards all the log messages.
14+
* DDS.Net.Connector.Interfaces.DefaultLogger.**ConsoleLogger** - prints log messages on the standard console.
15+
* DDS.Net.Connector.Interfaces.DefaultLogger.**FileLogger** - prints log messages into a given file.
16+
* DDS.Net.Connector.Interfaces.DefaultLogger.**SplitLogger** - splits log messages between two or more *ILogger* implementations
17+
18+

0 commit comments

Comments
 (0)