Class CSVFileDestination
Provides a CSV file storage log destination implementation
Inheritance
System.Object
CSVFileDestination
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Log.Destinations
Assembly: NFX.dll
Syntax
public class CSVFileDestination : TextFileDestination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized
Constructors
CSVFileDestination()
Declaration
public CSVFileDestination()
CSVFileDestination(String)
Declaration
public CSVFileDestination(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Fields
DEFAULT_LOG_TIME_FORMAT
Declaration
public const string DEFAULT_LOG_TIME_FORMAT = "yyyyMMdd-HHmmss"
Field Value
Type | Description |
---|---|
System.String |
Properties
DefaultFileName
Declaration
protected override string DefaultFileName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
LogTimeFormat
Sets time formatting for CSV log line
Declaration
[Config]
public string LogTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DoFormatMessage(Message)
Spools instance data in CSV format for storage in a file destination
Declaration
protected override string DoFormatMessage(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Returns
Type | Description |
---|---|
System.String |
Overrides
MessageToCSVLine(Message, String)
Declaration
public static string MessageToCSVLine(Message msg, string logTimeFormat = null)
Parameters
Type | Name | Description |
---|---|---|
Message | msg | |
System.String | logTimeFormat |
Returns
Type | Description |
---|---|
System.String |
Implements
System.IDisposable