LogHelperConfigure Method

配置日誌(可選)

Definition

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