Beispiel #1
0
        public StepLog LogStep(IStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException("step");
            }
            StepLog stepLog = new StepLog(this, step, this._output);

            this._steps.Add(stepLog);
            return(stepLog);
        }
        internal MessageLog(StepLog stepLog, string message, Output output)
            : this(stepLog.TaskLog, message)
        {
            if (output == null)
            {
                throw new ArgumentNullException(nameof(output));
            }

            StepLog = stepLog;

            output.Message("{0}: {1}", stepLog.Name, message);
        }
Beispiel #3
0
        public StepLog LogStep(IStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException(nameof(step));
            }

            var log = new StepLog(this, step, _output);

            _steps.Add(log);

            return(log);
        }