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

Indicates whether command output should be logged as Error when the command returns an error code. When false, error logs are logged according to logOutput.

logOutput bool

Indicates whether command output should be logged. When true, output is logged as Information; otherwise, it is logged as Debug.

exitCode int

Console exit code.

output string

Console output.

Returns

(int ExitCode, string Output)

A tuple containing the input exitCode and output.