Class ConsoleLogger

Logger for Console

Inheritance
ConsoleLogger
Implements
ILogger
Namespace: VoltRpc.Logging
Assembly: VoltRpc.dll
Syntax
public sealed class ConsoleLogger : ILogger

Constructors

| Edit this page View Source

ConsoleLogger(LogVerbosity)

Creates a new ConsoleLogger instance

Declaration
public ConsoleLogger(LogVerbosity logVerbosity = LogVerbosity.Info)
Parameters
TypeNameDescription
LogVerbositylogVerbosity

Properties

| Edit this page View Source

LogVerbosity

Logging level

Declaration
public LogVerbosity LogVerbosity { get; set; }
Property Value
TypeDescription
LogVerbosity

Methods

| Edit this page View Source

Debug(string)

Log a debug message

Declaration
public void Debug(string message)
Parameters
TypeNameDescription
stringmessage
| Edit this page View Source

Error(string)

Log a error message

Declaration
public void Error(string message)
Parameters
TypeNameDescription
stringmessage
| Edit this page View Source

Info(string)

Log a info message

Declaration
public void Info(string message)
Parameters
TypeNameDescription
stringmessage
| Edit this page View Source

Warn(string)

Log a waring message

Declaration
public void Warn(string message)
Parameters
TypeNameDescription
stringmessage

Implements

ILogger