With higher complexity of vip-go-ci and use cases as a library, too much information is logged in some cases, while in others it is optimal, and so a threshold needs to be configurable at run-time. See example of this here.
To resolve this, each log message should an associated log level. The levels would be: INFO, DEBUG and ERROR. ERROR would always be printed, but whether to print INFO and DEBUG messages would be configurable on the command line. This means that different use cases can make use of different log levels:
vip-go-ci in production would print INFO and ERROR log messages. This is based on prior experience, were having access to rich information is beneficial.
While in development, it would print INFO, DEBUG and ERROR.
Logging has become too noisy in some use-cases, while in others it is fine. We need to be able to configure log levels easily.
Description of feature
vipgoci_log() needs to be altered, replacing the $debug_level parameter with $log_level which uses predefined constants. All calls to vipgoci_log() will need to be updated.
Feature request
With higher complexity of
vip-go-ci
and use cases as a library, too much information is logged in some cases, while in others it is optimal, and so a threshold needs to be configurable at run-time. See example of this here.To resolve this, each log message should an associated log level. The levels would be:
INFO
,DEBUG
andERROR
.ERROR
would always be printed, but whether to printINFO
andDEBUG
messages would be configurable on the command line. This means that different use cases can make use of different log levels:vip-go-ci
in production would printINFO
andERROR
log messages. This is based on prior experience, were having access to rich information is beneficial.INFO
,DEBUG
andERROR
.ERROR
when fully configured to scan repositories.INFO
andERROR
.Background of feature request
Logging has become too noisy in some use-cases, while in others it is fine. We need to be able to configure log levels easily.
Description of feature
vipgoci_log() needs to be altered, replacing the
$debug_level
parameter with$log_level
which uses predefined constants. All calls tovipgoci_log()
will need to be updated.Supersedes #193.