Class CommandLogHelper
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
loggerINeosLoggerThe Neos logger instance.
logErrorsboolIndicates whether command output should be logged as
Errorwhen the command returns an error code. Whenfalse, error logs are logged according tologOutput.logOutputboolIndicates whether command output should be logged. When
true, output is logged asInformation; otherwise, it is logged asDebug.exitCodeintConsole exit code.
outputstringConsole output.