public static void Event(IOEvent @event, string path) { if (EnableVerbose) { WriteLine(OutWriter, ConsoleColor.DarkCyan, @event.ToString().ToLower() + " " + path.Relative()); } }
public void Event(IOEvent @event, string path, string extra = null) { if (Level < LogLevel.UltraVerbose) { return; } path = path.IsValidPath() && Path.IsPathRooted(path) ? path.ToRelativePath() : path.TrimPath(); if (!string.IsNullOrEmpty(extra)) { path += "; " + extra; } WriteLine(@event.ToString().ToLowerInvariant() + " " + path, ConsoleColor.DarkCyan); }