Skip to content

Commit

Permalink
Added DEBUG support. Resolves metaschema-framework/oscal-cli#92 (meta…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire authored Dec 20, 2024
1 parent 5097f0e commit f4b5016
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ private LogBuilder getLogger(@NonNull IValidationFinding finding) {
case INFORMATIONAL:
retval = LOGGER.atInfo();
break;
case DEBUG:
retval = LOGGER.isDebugEnabled() ? LOGGER.atDebug() : LOGGER.atInfo();
break;
default:
throw new IllegalArgumentException("Unknown level: " + finding.getSeverity().name());
}
Expand Down Expand Up @@ -193,6 +196,9 @@ private Ansi generatePreamble(@NonNull Level level) {
case INFORMATIONAL:
ansi = ansi.fgBrightBlue().a("INFO").reset();
break;
case DEBUG:
ansi = ansi.fgBrightCyan().a("DEBUG").reset();
break;
default:
ansi = ansi().fgBright(Color.MAGENTA).a(level.name()).reset();
break;
Expand Down

0 comments on commit f4b5016

Please sign in to comment.