示例#1
0
 public FilePath LogPath <T>(LogTarget <T> target, FileExtension ext = null, long?timestamp = null)
     where T : Enum
 => LogDir(target.Area) + FileName.Define($"{target.Area}.{target.KindName}.{timestamp ?? LogDate}.{ext ?? DefaultExtension}");
示例#2
0
文件: Log.cs 项目: 0xCM/arrows
 FilePath LogPath(string topic, FileExtension ext = null)
 => LogSettings.Get().LogPath(Area, topic, ext);
示例#3
0
 public FilePath LogPath(LogArea area, string topic, FileExtension ext = null, long?timestamp = null)
 => LogDir(area) + FileName.Define($"{area}.{topic}.{timestamp ?? LogDate}.{ext ?? DefaultExtension}");