Table of Contents

Class ConsoleLogger

Namespace
DiscordRPC.Logging
Assembly
DiscordRPC.dll

Logs the outputs to the console using WriteLine()

public class ConsoleLogger : ILogger
Inheritance
ConsoleLogger
Implements
Inherited Members

Constructors

ConsoleLogger()

Creates a new instance of a Console Logger.

public ConsoleLogger()

ConsoleLogger(LogLevel)

Creates a new instance of a Console Logger

public ConsoleLogger(LogLevel level)

Parameters

level LogLevel

The log level

ConsoleLogger(LogLevel, bool)

Creates a new instance of a Console Logger with a set log level

public ConsoleLogger(LogLevel level, bool coloured)

Parameters

level LogLevel

The log level

coloured bool

Should the logs be in colour?

Properties

Colored

A alias too Coloured

public bool Colored { get; set; }

Property Value

bool

Coloured

Should the output be coloured?

public bool Coloured { get; set; }

Property Value

bool

Level

The level of logging to apply to this logger.

public LogLevel Level { get; set; }

Property Value

LogLevel

Methods

Error(string, params object[])

Error log messsages

public void Error(string message, params object[] args)

Parameters

message string
args object[]

Info(string, params object[])

Informative log messages

public void Info(string message, params object[] args)

Parameters

message string
args object[]

Trace(string, params object[])

Informative log messages

public void Trace(string message, params object[] args)

Parameters

message string
args object[]

Warning(string, params object[])

Warning log messages

public void Warning(string message, params object[] args)

Parameters

message string
args object[]