Class CSVFileSink
Provides a CSV file storage log destination implementation
Inheritance
System.Object
CSVFileSink
Implements
System.IDisposable
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)
Namespace: Azos.Log.Sinks
Assembly: Azos.dll
Syntax
public class CSVFileSink : TextFileSink, IDisposable, IDaemon, IDaemonView, IApplicationComponent, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IConfigurable, INamed, IOrdered
Constructors
CSVFileSink(ISinkOwner)
Declaration
public CSVFileSink(ISinkOwner owner)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner |
CSVFileSink(ISinkOwner, String, Int32)
Declaration
public CSVFileSink(ISinkOwner owner, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner | |
System.String | name | |
System.Int32 | order |
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(Sink, Message, String)
Declaration
public static string MessageToCSVLine(Sink sink, Message msg, string logTimeFormat = null)
Parameters
Type | Name | Description |
---|---|---|
Sink | sink | |
Message | msg | |
System.String | logTimeFormat |
Returns
Type | Description |
---|---|
System.String |
Implements
System.IDisposable