Class TextFileSink
Provides a file storage sinks implementation
Inheritance
System.Object
TextFileSink
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 abstract class TextFileSink : FileSink, IDisposable, IDaemon, IDaemonView, IApplicationComponent, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IConfigurable, INamed, IOrdered
Constructors
TextFileSink(ISinkOwner)
Declaration
protected TextFileSink(ISinkOwner owner)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner |
TextFileSink(ISinkOwner, String, Int32)
Declaration
protected TextFileSink(ISinkOwner owner, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner | |
System.String | name | |
System.Int32 | order |
Methods
DoCloseStream()
Declaration
protected override void DoCloseStream()
Overrides
DoFormatMessage(Message)
Called when message is to be written to stream
Declaration
protected abstract string DoFormatMessage(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Returns
Type | Description |
---|---|
System.String |
DoOpenStream()
Declaration
protected override void DoOpenStream()
Overrides
DoPulse()
Declaration
protected override void DoPulse()
Overrides
DoWriteMessage(Message)
Warning: don't override this method in derived destinations, use DoFormatMessage() instead!
Declaration
protected override void DoWriteMessage(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Overrides
Implements
System.IDisposable