First commit

This commit is contained in:
2023-12-07 20:35:55 +01:00
parent 3480f2ab05
commit ea881e2403
18 changed files with 668 additions and 0 deletions

19
api/modules/log.js Normal file
View File

@@ -0,0 +1,19 @@
import pino from 'pino';
const logger = pino();
export function log(x) {
logger.info(x);
}
export function debug(x) {
logger.debug(x);
}
export function warn(x) {
logger.warn(x);
}
export function error(x) {
logger.error(x);
}