Allow to configure loglevel through an env variable

This commit is contained in:
Sander Declerck 2026-01-12 10:50:06 +01:00
parent 6d2d943e18
commit 3573ef2bc5
No known key found for this signature in database
3 changed files with 137 additions and 21 deletions

View file

@ -25,3 +25,12 @@ export function getNpmCustomRegistries() {
export function getPipCustomRegistries() {
return process.env.SAFE_CHAIN_PIP_CUSTOM_REGISTRIES;
}
/**
* Gets the logging level from environment variable
* Valid values: "silent", "normal", "verbose"
* @returns {string | undefined}
*/
export function getLoggingLevel() {
return process.env.SAFE_CHAIN_LOGGING;
}