LogHelperConfigure Method

配置日誌(可選)

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.4.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
C#
public static void Configure(
	Action<LogConfiguration> configurator
)

Parameters

configurator  ActionLogConfiguration
配置委派

Remarks

若不呼叫此方法,LogHelper 將使用預設的 NLog.config 或環境別配置

Example

C#
LogHelper.Configure(config => 
{
    config.SetVariable("logDir", @"C:\Logs")
          .UseFileLogging();
});

Revision History

DateVersionDescription
2025/12/0825.0.3.0支援可選配置

See Also