Table of Contents

Class FileLogger

Namespace
DiscordRPC.Logging
Assembly
DiscordRPC.dll

Logs the outputs to a file

public class FileLogger : ILogger
Inheritance
FileLogger
Implements
Inherited Members

Constructors

FileLogger(string)

Creates a new instance of the file logger

public FileLogger(string path)

Parameters

path string

The path of the log file.

FileLogger(string, LogLevel)

Creates a new instance of the file logger

public FileLogger(string path, LogLevel level)

Parameters

path string

The path of the log file.

level LogLevel

The level to assign to the logger.

Properties

File

Should the output be coloured?

public string File { get; set; }

Property Value

string

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[]