2024-11-01 03:25:52 +02:00

6 lines
188 B
TypeScript

export default function logger(area: string, text?: string){
let date = new Date();
console.log('[' + area + '] - ' + date.toISOString());
if(text) console.log(text + '\n');
}