chore: rename log level environment variable to TASKMASTER_LOG_LEVEL (#417)
* chore: rename log level environment variable to `TASKMASTER_LOG_LEVEL` ### CHANGES - Update environment variable from `LOG_LEVEL` to `TASKMASTER_LOG_LEVEL`. - Reflect change in documentation for clarity. - Adjust variable name in script and test files. - Maintain default log level as `info`. * fix: add changeset * chore: rename `LOG_LEVEL` to `TASKMASTER_LOG_LEVEL` for consistency ### CHANGES - Update environment variable name to `TASKMASTER_LOG_LEVEL` in documentation. - Reflect rename in configuration rules for clarity. - Maintain consistency across project configuration settings.
This commit is contained in:
@@ -38,10 +38,10 @@ const LOG_LEVELS = {
|
||||
success: 4
|
||||
};
|
||||
|
||||
// Get log level from environment or default to info
|
||||
const LOG_LEVEL = process.env.LOG_LEVEL
|
||||
? LOG_LEVELS[process.env.LOG_LEVEL.toLowerCase()]
|
||||
: LOG_LEVELS.info;
|
||||
// Determine log level from environment variable or default to 'info'
|
||||
const LOG_LEVEL = process.env.TASKMASTER_LOG_LEVEL
|
||||
? LOG_LEVELS[process.env.TASKMASTER_LOG_LEVEL.toLowerCase()]
|
||||
: LOG_LEVELS.info; // Default to info
|
||||
|
||||
// Create a color gradient for the banner
|
||||
const coolGradient = gradient(['#00b4d8', '#0077b6', '#03045e']);
|
||||
|
||||
Reference in New Issue
Block a user