LogConfigurationSetVariable Method

設定環境變數

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.4.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
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