mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
import * as cliArguments from "./cliArguments.js";
|
|
|
|
export function getLoggingLevel() {
|
|
const level = cliArguments.getLoggingLevel();
|
|
|
|
if (level === LOGGING_SILENT) {
|
|
return LOGGING_SILENT;
|
|
}
|
|
|
|
if (level === LOGGING_VERBOSE) {
|
|
return LOGGING_VERBOSE;
|
|
}
|
|
|
|
return LOGGING_NORMAL;
|
|
}
|
|
|
|
export const LOGGING_SILENT = "silent";
|
|
export const LOGGING_NORMAL = "normal";
|
|
export const LOGGING_VERBOSE = "verbose";
|