Exemple #1
0
 public ProcessListener(
     [NotNull] ILog <ProcessListener> log,
     [NotNull] IColorfulStdOut stdOut,
     [NotNull] IStdErr stdErr)
 {
     _log    = log ?? throw new ArgumentNullException(nameof(log));
     _stdOut = stdOut ?? throw new ArgumentNullException(nameof(stdOut));
     _stdErr = stdErr ?? throw new ArgumentNullException(nameof(stdErr));
 }
Exemple #2
0
        public Log(
            Func <Verbosity> verbosity,
            [NotNull] IColorfulStdOut stdOut)
        {
            _verbosity = verbosity;
            _stdOut    = stdOut ?? throw new ArgumentNullException(nameof(stdOut));
            var prefixStr = $"{typeof(T).Name} -> ";

            _prefix      = new Text(prefixStr, Color.Trace);
            _emptyPrefix = new Text(new string(' ', prefixStr.Length));
        }
Exemple #3
0
 public BuildListener(
     [NotNull] ILog <BuildListener> log,
     [NotNull] IColorfulStdOut stdOut,
     [NotNull] IStdErr stdErr,
     [NotNull] IMessageProcessor messageProcessor)
 {
     _log              = log ?? throw new ArgumentNullException(nameof(log));
     _stdOut           = stdOut ?? throw new ArgumentNullException(nameof(stdOut));
     _stdErr           = stdErr ?? throw new ArgumentNullException(nameof(stdErr));
     _messageProcessor = messageProcessor ?? throw new ArgumentNullException(nameof(messageProcessor));
 }