Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /**
* Logging utilities with color-coded output
*/
/**
* Create logger with verbose mode support
* @param {boolean} verbose - Enable verbose logging
* @returns {object} Logger object with logging methods
*/
export function createLogger(verbose = false) {
return {
section: (msg) => console.log(`\n\x1b[1m${msg}\x1b[0m`),
info: (msg) => console.log(`\x1b[36m●\x1b[0m ${msg}`),
success: (msg) => console.log(`\x1b[32m✓\x1b[0m ${msg}\n`),
warn: (msg) => console.log(`\x1b[33m⚠\x1b[0m ${msg}\n`),
error: (msg) => console.error(`\x1b[31m✗\x1b[0m ${msg}\n`),
detail: (msg) => verbose && console.log(` \x1b[90m${msg}\x1b[0m`),
dim: (msg) => console.log(`\x1b[90m${msg}\x1b[0m`),
};
}
|