Exemplo n.º 1
0
        public void EndSection()
        {
            int i = stack.Count - 1;

            try
            {
                var section = stack[i];
                stack.RemoveAt(i);
                cmdlet.WriteVerbose($" [END of {section.Item1}] ({(DateTime.Now - section.Item2).TotalMilliseconds})");
            }
            catch (ArgumentOutOfRangeException)
            {
                cmdlet.WriteDebug($"  *** Logger: Invalid section stack index: {i}");
                cmdlet.WriteDebug("[END of  -unknown section-]");
            }
        }
Exemplo n.º 2
0
 public void Log(string message) =>
 cmdlet.WriteDebug($" [INFO] {message}");