C4InterFlow
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
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.