LogConfigurationSetVariable Method
設定環境變數
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 26.0.1.0+8b857ad8115790502a00f482082d0feffe7e9c92
public LogConfiguration SetVariable(
string key,
string value
)
- key String
- 變數名稱
- value String
- 變數值
LogConfiguration配置物件(支援鏈式呼叫)
config.SetVariable("main", @"C:\Logs")
.SetVariable("production", "prod-server");