Compare commits
1 Commits
ad87772da9
...
80fbd915ed
Author | SHA1 | Date | |
---|---|---|---|
80fbd915ed |
@ -1,10 +1,11 @@
|
|||||||
import PhoneNumber from "awesome-phonenumber";
|
import PhoneNumber from "awesome-phonenumber";
|
||||||
import winston from "winston";
|
import winston, { format } from "winston";
|
||||||
|
|
||||||
export const DEBUG = !!process.env.DEBUG;
|
export const DEBUG = !!process.env.DEBUG;
|
||||||
export const logger = winston.createLogger({
|
export const logger = winston.createLogger({
|
||||||
level: DEBUG ? "debug" : process.env.LOG_LEVEL ?? "info",
|
level: DEBUG ? "debug" : process.env.LOG_LEVEL ?? "info",
|
||||||
transports: [new winston.transports.Console()],
|
transports: [new winston.transports.Console()],
|
||||||
|
format: format.printf(({ level, message }) => `${level}: ${message}`),
|
||||||
});
|
});
|
||||||
|
|
||||||
export function getNationalNumber(input: string) {
|
export function getNationalNumber(input: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user