"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setLogLevel = setLogLevel;
exports.log = log;
let logLevel = 'info';
function setLogLevel(level = 'info') {
    logLevel = level;
}
function log(message, options) {
    const { level = 'info' } = options || {};
    if (logLevel !== 'silent' && (logLevel === 'verbose' || level === 'info')) {
        if ((options === null || options === void 0 ? void 0 : options.newline) === 'before' || (options === null || options === void 0 ? void 0 : options.newline) === 'both') {
            console.log();
        }
        console.log('   ' + (message !== null && message !== void 0 ? message : ''));
        if ((options === null || options === void 0 ? void 0 : options.newline) === 'after' || (options === null || options === void 0 ? void 0 : options.newline) === 'both') {
            console.log();
        }
    }
}
//# sourceMappingURL=logger.js.map