Files
airjet/api/modules/log.js
2023-05-10 20:43:45 +02:00

26 lines
289 B
JavaScript

const pino = require('pino');
const logger = pino();
function log(x) {
logger.info(x);
}
function debug(x) {
logger.debug(x);
}
function warn(x) {
logger.warn(x);
}
function error(x) {
logger.error(x);
}
module.exports = {
log,
debug,
warn,
error,
};