Esempio n. 1
0
 public static void Event(IOEvent @event, string path)
 {
     if (EnableVerbose)
     {
         WriteLine(OutWriter, ConsoleColor.DarkCyan, @event.ToString().ToLower() + " " + path.Relative());
     }
 }
Esempio n. 2
0
        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);
        }