Compare commits
	
		
			1 Commits
		
	
	
		
			80fbd915ed
			...
			ad87772da9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ad87772da9 | 
@ -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) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user