LogConfigurationUseFileLogging(FileLoggingConfiguration) Method
使用檔案日誌紀錄 (完整配置)
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.5.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
public LogConfiguration UseFileLogging(
FileLoggingConfiguration config
)
- config FileLoggingConfiguration
- 檔案日誌配置選項
LogConfiguration配置物件(支援鏈式呼叫)
config.UseFileLogging(new FileLoggingConfiguration
{
Layout = "${longdate} | ${message}",
FileName = "${basedir}/../Logs/${level:lowercase=true}.log",
ArchiveAboveSize = 10485760,
MaxArchiveDays = 90
});
| Date | Version | Description |
|---|
| 2025/12/16 | 25.0.5.0 | 新增完整配置支援 |