diff --git a/src/modules/LogService.ts b/src/modules/LogService.ts index f656f24..5470c66 100644 --- a/src/modules/LogService.ts +++ b/src/modules/LogService.ts @@ -3,11 +3,18 @@ import fs from 'fs' import path from 'path' export default class Log { - public static info(code: number, message: string, data?: any): void { + public static info(code: number, message: string, data?: any): object { if (!data) { data = '' } + console.log(colors.bgGreen.black(` ${code} `) + colors.green.bgBlack(` ${message} `) + data) + //this.writeLog('info', code, message, data) + return { + code: code, + message: message, + data: data + } } public static error(code: number, message: string, data?: any): object {