Class GorgonTextFileLog
Sends logging information to a text file.
Inherited Members
Namespace: Gorgon.Diagnostics
Assembly: Gorgon.Core.dll
Syntax
public class GorgonTextFileLog : GorgonLog, IGorgonThreadedLog, IGorgonLog
Constructors
| Edit this page View SourceGorgonTextFileLog(string, string, Version)
Initializes a new instance of the GorgonTextFileLog class.
Declaration
public GorgonTextFileLog(string appName, string extraPath, Version version = null)
Parameters
Type | Name | Description |
---|---|---|
string | appName | File name for the log file. |
string | extraPath | Additional directories for the path. |
Version | version | [Optional] The version of the application that is logging. |
Remarks
This constructor automatically creates a IGorgonLogProvider that outputs to a text file and assigns it to the Provider property.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
ArgumentEmptyException | Thrown when the |
Properties
| Edit this page View SourceLogPath
Property to return the path to the log file.
Declaration
public string LogPath { get; }
Property Value
Type | Description |
---|---|
string |