C4InterFlow icon indicating copy to clipboard operation
C4InterFlow copied to clipboard

Add support for writing Debug, Information, Warning and Error log level messages to a Console and to a local log file

Open SlavaVedernikov opened this issue 4 months ago • 0 comments

Context

At the moment Information and Error messages are written to Console with Console.WriteLine method.

Requirement

It would be better if the user was able to add CLI Command Options to control the logging e.g.

Option -lo, --log-out - Default console. Multiple values allowed. Possible values console file

Option -ll, --log-level - Default info Possible values debug info warning error

Initial implementation can replace all Console.WriteLine invocations inside catch block as logs as error level, and all other Console.WriteLine invocations as logs at info level.

SlavaVedernikov avatar Feb 18 '24 09:02 SlavaVedernikov