UNPKG

@qelos/auth

Version:

Express Passport authentication service

14 lines (10 loc) 275 B
import {showLogs} from '../../config'; const logger = { log: (() => undefined) as ((...data: any[]) => void), error: (() => undefined) as ((...data: any[]) => void) } if (showLogs) { logger.log = console.log; logger.error = console.error; } export default logger;