LogHelperConfigure Method
配置日誌(可選)
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.4.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
public static void Configure(
Action<LogConfiguration> configurator
)
Parameters
- configurator ActionLogConfiguration
- 配置委派
若不呼叫此方法,LogHelper 將使用預設的 NLog.config 或環境別配置
LogHelper.Configure(config =>
{
config.SetVariable("logDir", @"C:\Logs")
.UseFileLogging();
});
| Date | Version | Description |
|---|
| 2025/12/08 | 25.0.3.0 | 支援可選配置 |