Table of Contents

Class ExecLog

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Controls how process output lines are logged.

public sealed class ExecLog

Constructors

ExecLog(Action<OutputType, string>)

Creates process-output logging with custom per-line behavior.

public ExecLog(Action<OutputType, string> write)

Parameters

write Action<OutputType, string>

Properties

Default

Logs standard output at Information and standard error at Error through the global Serilog logger.

public static ExecLog Default { get; }

Property Value

ExecLog

ErrorsOnly

Logs only standard-error output, using the default logging behavior.

public static ExecLog ErrorsOnly { get; }

Property Value

ExecLog

None

Does not log process output.

public static ExecLog None { get; }

Property Value

ExecLog

Methods

Filter(Func<OutputType, string, bool>)

Returns logging that forwards matching output to this logging behavior.

public ExecLog Filter(Func<OutputType, string, bool> predicate)

Parameters

predicate Func<OutputType, string, bool>

Returns

ExecLog