FileLoggingConfiguration Class

檔案日誌配置選項

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.5.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
C#
public class FileLoggingConfiguration
Inheritance
Object    FileLoggingConfiguration

Constructors

FileLoggingConfigurationInitializes a new instance of the FileLoggingConfiguration class

Properties

ArchiveAboveSize 單一檔案超過此大小時進行封存 (位元組,預設 10MB = 10485760)
ArchiveEvery 封存週期 (Day, Hour, Minute, Month, Year, None)
ArchiveFileName 封存檔案名稱格式
Encoding 檔案編碼 (預設: UTF-8)
FileName 檔案名稱格式
KeepFileOpen 保持檔案開啟狀態
Layout 日誌格式 (Layout)
MaxArchiveDays 保留封存檔案的最大天數
MaxArchiveFiles 保留封存檔案的最大數量 (0 表示無限制)

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Validate 驗證配置

Extension Methods

CloneT 跨型別複製物件
(Defined by CoreExtension)
ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToXmlString 轉換Xml字串
(Defined by SerializeExtend)
WriteJsonFile 寫入Json格式檔案
(Defined by SerializeExtend)

Revision History

DateVersionDescription
2025/12/1625.0.5.0新增從 appsettings 載入檔案日誌設定功能

See Also