Example #1
0
 public LogSource(ILogDirectoryConfig config, LogFileStatsCache statsCache)
 {
     Debug.Assert(config != null, "LogSource.ctor: config is null.");
     Debug.Assert(statsCache != null, "LogSource.ctor: statsCache is null.");
     config_     = config;
     statsCache_ = statsCache;
 }
Example #2
0
 private static string GetFileId(ILogDirectoryConfig directory, string fullPath)
 {
     var fileName = Path.GetFileName (fullPath);
     return String.Format ("{0}-{1}", directory.Name, fileName).ToLower ();
 }