Class LoggerConsole
Logging using serilog
Inheritance
object
LoggerConsole
Implements
Namespace: BuildSystem.Loggers
Assembly: BuildSystem.Loggers.dll
Syntax
public class LoggerConsole : Object, ILogger
Constructors
LoggerConsole()
Logging using serilog
Declaration
public LoggerConsole()
LoggerConsole(LoggerConfiguration)
Logging to console with self configuration
Declaration
public LoggerConsole(LoggerConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Serilog.LoggerConfiguration | configuration |
Methods
addLogLevel(LogLevel)
Add logging for new level
Declaration
public void addLogLevel(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level |
debug(string)
Show in Console.WriteLine log message with debug level
Declaration
public void debug(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
error(string)
Show in Console.WriteLine log message with error level
Declaration
public void error(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
head(string)
Show in Console.WriteLine log message with head level
Declaration
public void head(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
info(string)
Show in Console.WriteLine log message with info level
Declaration
public void info(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
log(LogLevel, string)
Save log information
Declaration
public void log(LogLevel level, string data)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | |
string | data |
removeLogLevel(LogLevel)
Remove logging for existing level
Declaration
public void removeLogLevel(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level |
setMinLevel(LogLevel)
Minimal level of logging, which will be processed. All higher levels will also be added
Declaration
public void setMinLevel(LogLevel minLevel)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | minLevel |
verbose(string)
Show in Console.WriteLine log message with verbose level
Declaration
public void verbose(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
warning(string)
Show in Console.WriteLine log message with warning level
Declaration
public void warning(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |