Class LoggerBuffer
Logging into buffer
Inheritance
object
LoggerBuffer
Implements
Namespace: BuildSystem.Loggers
Assembly: BuildSystem.Loggers.dll
Syntax
public class LoggerBuffer : Object, ILogger
Constructors
LoggerBuffer()
Logging into buffer
Declaration
public LoggerBuffer()
Properties
Buffer
List of log lines
Declaration
public List<KeyValuePair<LogLevel, string>> Buffer { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<><KeyValuePair<LogLevel, string>> |
Methods
addLogLevel(LogLevel)
Add logging for new level
Declaration
public void addLogLevel(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level |
debug(string)
Save message in log with level = debug
Declaration
public void debug(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
error(string)
Save message in log with level = error
Declaration
public void error(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
head(string)
Save message in log with level = head
Declaration
public void head(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
info(string)
Save message in log with level = info
Declaration
public void info(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
log(LogLevel, string)
Save message with its level to log
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)
Save message in log with level = verbose
Declaration
public void verbose(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |
warning(string)
Save message in log with level = warning
Declaration
public void warning(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data |