UNPKG

@studion/infra-code-blocks

Version:
17 lines (16 loc) 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createLogLevelVariable = createLogLevelVariable; const helpers_1 = require("./helpers"); const LOG_LEVELS = [ { text: 'ALL', value: '/./' }, { text: 'Trace', value: "'trace'" }, { text: 'Debug', value: "'debug'" }, { text: 'Info', value: "'info'" }, { text: 'Warn', value: "'warn'" }, { text: 'Error', value: "'error'" }, { text: 'Fatal', value: "'fatal'" }, ]; function createLogLevelVariable(options = {}) { return (0, helpers_1.createCustomJSONVariable)('log_level', 'Log Level', LOG_LEVELS, LOG_LEVELS[0], options); }