Gorgon
Show / Hide Table of Contents

Class GorgonTextFileLog

Sends logging information to a text file.

Inheritance
object
GorgonLog
GorgonTextFileLog
Implements
IGorgonThreadedLog
IGorgonLog
Inherited Members
GorgonLog.NullLog
GorgonLog.ThreadID
GorgonLog.LogFilterLevel
GorgonLog.LogApplication
GorgonLog.Provider
GorgonLog.LogException(Exception)
GorgonLog.Print(string, LoggingLevel, params object[])
GorgonLog.LogEnd()
GorgonLog.LogStart()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Diagnostics
Assembly: Gorgon.Core.dll
Syntax
public class GorgonTextFileLog : GorgonLog, IGorgonThreadedLog, IGorgonLog

Constructors

| Edit this page View Source

GorgonTextFileLog(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 appName parameter is null.

ArgumentEmptyException

Thrown when the appName parameter is empty.

Properties

| Edit this page View Source

LogPath

Property to return the path to the log file.

Declaration
public string LogPath { get; }
Property Value
Type Description
string

Implements

IGorgonThreadedLog
IGorgonLog

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author