public class ElasticSearchConfiguration| ElasticSearchConfiguration | Initializes a new instance of the ElasticSearchConfiguration class |
| ApiKey | API Key (用於 ApiKey Authentication) |
| ApiKeyId | API Key ID (用於 ApiKey Authentication) |
| BatchSize | 批次大小 |
| ConnectionTimeout | 連線逾時時間(秒) |
| IncludeAllProperties | 是否包含所有日誌屬性 |
| IndexFormat | 索引名稱模板 (支援 NLog Layout 變數) |
| Layout | 日誌格式 |
| Password | 密碼 (用於 Basic Authentication) |
| ProjectCode | 專案代碼 (用於索引名稱) |
| ServerName | 伺服器名稱 (用於索引名稱) |
| Uri | ElasticSearch 伺服器 URI |
| Username | 使用者名稱 (用於 Basic Authentication) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Validate | 驗證配置 |
| 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) |
| Date | Version | Description |
|---|---|---|
| 2025/12/09 | 25.0.0.0 | 支援 ElasticSearch 配置 |