Compare commits

..

1 Commits

Author SHA1 Message Date
ad87772da9 Use winston for logging 2021-03-14 20:56:03 -06:00

View File

@ -1,11 +1,10 @@
import PhoneNumber from "awesome-phonenumber";
import winston, { format } from "winston";
import winston from "winston";
export const DEBUG = !!process.env.DEBUG;
export const logger = winston.createLogger({
level: DEBUG ? "debug" : process.env.LOG_LEVEL ?? "info",
transports: [new winston.transports.Console()],
format: format.printf(({ level, message }) => `${level}: ${message}`),
});
export function getNationalNumber(input: string) {