Class ConsoleLogger
Logger for Console
Implements
Inherited Members
Namespace: VoltRpc.Logging
Assembly: VoltRpc.dll
Syntax
public sealed class ConsoleLogger : ILogger
Constructors
| Edit this page View SourceConsoleLogger(LogVerbosity)
Creates a new ConsoleLogger instance
Declaration
public ConsoleLogger(LogVerbosity logVerbosity = LogVerbosity.Info)
Parameters
Type | Name | Description |
---|---|---|
LogVerbosity | logVerbosity |
Properties
| Edit this page View SourceLogVerbosity
Logging level
Declaration
public LogVerbosity LogVerbosity { get; set; }
Property Value
Type | Description |
---|---|
LogVerbosity |
Methods
| Edit this page View SourceDebug(string)
Log a debug message
Declaration
public void Debug(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Error(string)
Log a error message
Declaration
public void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Info(string)
Log a info message
Declaration
public void Info(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Warn(string)
Log a waring message
Declaration
public void Warn(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |