Class ExecLog
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Controls how process output lines are logged.
public sealed class ExecLogConstructors
ExecLog(Action<OutputType, string>)
Creates process-output logging with custom per-line behavior.
public ExecLog(Action<OutputType, string> write)Parameters
writeAction<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
ErrorsOnly
Logs only standard-error output, using the default logging behavior.
public static ExecLog ErrorsOnly { get; }Property Value
None
Does not log process output.
public static ExecLog None { get; }Property Value
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
predicateFunc<OutputType, string, bool>