Show / Hide Table of Contents

Class FileDestination

Provides a file storage destination implementation

Inheritance
System.Object
DisposableObject
ApplicationComponent
Destination
FileDestination
TextFileDestination
Implements
IApplicationComponent
System.IDisposable
IConfigurable
IExternallyParameterized
Inherited Members
Destination.CONFIG_NAME_ATTR
Destination.CONFIG_FAILOVER_ATTR
Destination.CONFIG_GENERATE_FAILOVER_MSG_ATTR
Destination.CONFIG_ONLY_FAILURES_ATTR
Destination.CONFIG_MIN_LEVEL_ATTR
Destination.CONFIG_MAX_LEVEL_ATTR
Destination.CONFIG_LEVELS_ATTR
Destination.CONFIG_DAYS_OF_WEEK_ATTR
Destination.CONFIG_START_DATE_ATTR
Destination.CONFIG_END_DATE_ATTR
Destination.CONFIG_START_TIME_ATTR
Destination.CONFIG_END_TIME_ATTR
Destination.CONFIG_FILTER_ATTR
Destination.CONFIG_TEST_ON_START_ATTR
Destination.CONFIG_NAME_DEFAULT
Destination.CONFIG_MAX_PROCESSING_TIME_MS_ATTR
Destination.CONFIG_MAX_PROCESSING_TIME_MS_MIN_VALUE
Destination.CONFIG_RESTART_PROCESSING_AFTER_MS_ATTR
Destination.CONFIG_RESTART_PROCESSING_AFTER_MS_DEFAULT
Destination.PROCESSING_TIME_EMA_FILTER
Destination.Destructor()
Destination.m_Owner
Destination.m_Name
Destination.DirectorLog
Destination.Service
Destination.Owner
Destination.Name
Destination.Filter
Destination.FilterMethod
Destination.LastError
Destination.MinLevel
Destination.MaxLevel
Destination.Levels
Destination.DaysOfWeek
Destination.StartDate
Destination.EndDate
Destination.StartTime
Destination.EndTime
Destination.OnlyFailures
Destination.GenerateFailoverMessages
Destination.Failover
Destination.TestOnStart
Destination.MaxProcessingTimeMs
Destination.Channel
Destination.AverageProcessingTimeMs
Destination.RestartProcessingAfterMs
Destination.ExternalParameters
Destination.ExternalParametersForGroups(String[])
Destination.Configure(IConfigSectionNode)
Destination.Before
Destination.After
Destination.Send(Message)
Destination.Pulse()
Destination.ParseLevels(String)
Destination.ExternalGetParameter(String, Object, String[])
Destination.ExternalSetParameter(String, Object, String[])
Destination.DoConfigure(IConfigSectionNode)
Destination.SetError(Exception, Message)
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
ApplicationComponent.ComponentDirector
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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 abstract class FileDestination : Destination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized

Constructors

FileDestination(String)

Declaration
protected FileDestination(string name)
Parameters
Type Name Description
System.String name

Fields

m_FileName

Declaration
protected string m_FileName
Field Value
Type Description
System.String

m_Path

Declaration
protected string m_Path
Field Value
Type Description
System.String

m_Stream

Declaration
protected FileStream m_Stream
Field Value
Type Description
System.IO.FileStream

Properties

DefaultFileName

Declaration
protected virtual string DefaultFileName { get; }
Property Value
Type Description
System.String

FileName

The name of the file without path may use {0} for date: {0:yyyyMMdd}-$($name).csv.log

Declaration
[Config]
public virtual string FileName { get; set; }
Property Value
Type Description
System.String

Path

Directory where file should be created. Will create the directory chain if it doesn't exist

Declaration
[Config]
public virtual string Path { get; set; }
Property Value
Type Description
System.String

Methods

Close()

Declaration
public override void Close()
Overrides
Destination.Close()

DoCloseStream()

Called just before output stream is closed

Declaration
protected abstract void DoCloseStream()

DoOpenStream()

Called after output stream has been opened

Declaration
protected abstract void DoOpenStream()

DoPulse()

Declaration
protected override void DoPulse()
Overrides
Destination.DoPulse()

DoSend(Message)

Override DoFormatMessage() instead

Declaration
protected override sealed void DoSend(Message msg)
Parameters
Type Name Description
Message msg
Overrides
Destination.DoSend(Message)

DoWriteMessage(Message)

Called when message is to be written to stream

Declaration
protected abstract void DoWriteMessage(Message msg)
Parameters
Type Name Description
Message msg

GetDestinationFileName()

Declaration
protected virtual string GetDestinationFileName()
Returns
Type Description
System.String

Open()

Declaration
public override void Open()
Overrides
Destination.Open()

Implements

IApplicationComponent
System.IDisposable
IConfigurable
IExternallyParameterized

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX