brawlset/app/lib/logging.ts

4 lines
311 B
TypeScript

export function logging(message: string) {
const date = new Date()
console.log("[" + date.getFullYear() + "/" + (date.getMonth()+1).toString().padStart(2,'0') + "/" + date.getDate().toString().padStart(2,'0') + " - " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds() +"] " + message)
}