Class PluginLogFilePrinter
Prints log messages to the file specified by the name.
Implements
Inherited Members
Namespace: IPA.Logging.Printers
Assembly: IPA.Loader.dll
Syntax
public class PluginLogFilePrinter : GZFilePrinter, IDisposable
Constructors
| Improve this Doc View SourcePluginLogFilePrinter(String)
Creates a new printer with the given name.
Declaration
public PluginLogFilePrinter(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | the name of the logger |
Properties
| Improve this Doc View SourceFilter
Provides a filter for this specific printer.
Declaration
public override Logger.LogLevel Filter { get; set; }
Property Value
Type | Description |
---|---|
Logger.LogLevel | the filter level for this printer |
Overrides
Methods
| Improve this Doc View SourceGetFileInfo()
Gets the FileInfo for the target file.
Declaration
protected override FileInfo GetFileInfo()
Returns
Type | Description |
---|---|
FileInfo | the file to write to |
Overrides
| Improve this Doc View SourcePrint(Logger.Level, DateTime, String, String)
Prints an entry to the associated file.
Declaration
public override void Print(Logger.Level level, DateTime time, string logName, string message)
Parameters
Type | Name | Description |
---|---|---|
Logger.Level | level | the Logger.Level of the message |
DateTime | time | the DateTime the message was recorded at |
String | logName | the name of the log that sent the message |
String | message | the message to print |