import chalk from "chalk";
let level = "info";
export function setLevel(newLevel) {
    level = newLevel;
}
export function info(message) {
    if (level === "info" || level === "debug") {
        console.log(message);
    }
}
export function error(message, err) {
    console.error(chalk.red(message));
    if (err) {
        console.error(err);
    }
}
export function warn(message) {
    console.warn(chalk.yellow(message));
}
export function debug(message) {
    if (level === "debug") {
        console.debug(chalk.grey(message));
    }
}
//# sourceMappingURL=logging.js.map