LogHelperLoadEnvironmentConfiguration Method
手動載入環境別配置
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.5.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
public static void LoadEnvironmentConfiguration(
string baseDirectory = null,
string environmentVariableName = null
)
Parameters
- baseDirectory String (Optional)
- 配置檔基礎目錄
- environmentVariableName String (Optional)
- 自訂環境變數名稱
// 載入指定目錄的環境別配置
LogHelper.LoadEnvironmentConfiguration(@"C:\Config");
// 使用自訂環境變數
LogHelper.LoadEnvironmentConfiguration(environmentVariableName: "MY_ENV");
| Date | Version | Description |
|---|
| 2025/12/08 | 25.0.3.0 | 支援環境別配置檔 |