ConsoleOutput Class¶
Definition¶
namespace Sharplog.Outputs
- Object
- Output
- ConsoleOutput
-
Output using the default console output.
Constructors¶
Name |
---|
ConsoleOutput() |
ConsoleOutput(bool, string, LevelContainer, Dictionary<LogLevel, Color>) |
Properties¶
Name | Type | GET | SET |
---|---|---|---|
Format | string | ||
Levels | LevelContainer | ||
ColorEnabled | bool | ||
Colors | Dictionary<LogLevel, Color> |
Inherited Methods¶
Name | Modifiers | Returns |
---|---|---|
Write(string, Log) | public |
Constructors¶
ConsoleOutput()¶
-
Initializes a new instance of the ConsoleOutput class.
ConsoleOutput(bool, string, LevelContainer, Dictionary<LogLevel, Color>)¶
-
Initializes a new instance of the ConsoleOutput class.
Parameter¶
colorEnabled
bool ·true
- If set to
true
color output is enabled. format
string ·null
- The format.
levels
LevelContainer ·null
- The level settings.
colors
Dictionary<LogLevel, Color>- The colors.
Properties¶
ColorEnabled¶
- Type: bool
-
Gets or sets a value indicating whether color is enabled.
Colors¶
- Type: Dictionary<LogLevel, Color>
-
Gets or sets the colors for each log level.