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¶
colorEnabledbool ·true- If set to
truecolor output is enabled. formatstring ·null- The format.
levelsLevelContainer ·null- The level settings.
colorsDictionary<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.