mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Update logger
This commit is contained in:
parent
740254b1ea
commit
89275f118e
@ -20,7 +20,8 @@ export default class Logger {
|
|||||||
public static log(level: LogLevel, message: string): void {
|
public static log(level: LogLevel, message: string): void {
|
||||||
const color = toLevelColor(level);
|
const color = toLevelColor(level);
|
||||||
const time = (new Date()).toLocaleTimeString('ja-JP');
|
const time = (new Date()).toLocaleTimeString('ja-JP');
|
||||||
console.log(`[${time} ${color.bold(level.toUpperCase())}]: ${message}`);
|
const coloredMessage = level === 'Info' ? message : color.bold(message);
|
||||||
|
console.log(`[${time} ${color.bold(level.toUpperCase())}]: ${coloredMessage}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static error(message: string): void {
|
public static error(message: string): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user