Table of Contents

Class CommandLogHelper

Namespace
GroupeIsa.Neos.Shared.Logging
Assembly
GroupeIsa.Neos.Shared.dll

Helper class for console command logging.

public static class CommandLogHelper
Inheritance
CommandLogHelper
Inherited Members

Methods

LogCommandOutput(INeosLogger, bool, bool, int, string)

Format console output in the Neos logger.

public static (int ExitCode, string Output) LogCommandOutput(INeosLogger logger, bool logErrors, bool logOutput, int exitCode, string output)

Parameters

logger INeosLogger

The Neos logger instance.

logErrors bool

Log errors if any.

logOutput bool

Log output.

exitCode int

Console exit code.

output string

Console output.

Returns

(int ExitCode, string Output)

A tuple containing the input exitCode and output.