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
stringThe path of the log file.
FileLogger(string, LogLevel)
Creates a new instance of the file logger
public FileLogger(string path, LogLevel level)
Parameters
Properties
File
Should the output be coloured?
public string File { get; set; }
Property Value
Level
The level of logging to apply to this logger.
public LogLevel Level { get; set; }
Property Value
Methods
Error(string, params object[])
Error log messsages
public void Error(string message, params object[] args)
Parameters
Info(string, params object[])
Informative log messages
public void Info(string message, params object[] args)
Parameters
Trace(string, params object[])
Informative log messages
public void Trace(string message, params object[] args)
Parameters
Warning(string, params object[])
Warning log messages
public void Warning(string message, params object[] args)