LogConfigurationSetVariable Method

設定環境變數

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 26.0.1.0+8b857ad8115790502a00f482082d0feffe7e9c92
C#
public LogConfiguration SetVariable(
	string key,
	string value
)

Parameters

key  String
變數名稱
value  String
變數值

Return Value

LogConfiguration
配置物件(支援鏈式呼叫)

Example

C#
config.SetVariable("main", @"C:\Logs")
      .SetVariable("production", "prod-server");

See Also