File size: 392 Bytes
52c6f5c
 
 
 
be61c3d
 
52c6f5c
 
 
 
be61c3d
 
52c6f5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const DEBUG_LOG = true;

export const debugLog = (...args: unknown[]) => {
	if (!DEBUG_LOG) return;
	const now = new Date();
	console.log(`[Time: ${now.toLocaleTimeString()}] [LOG] ${args.join(" ")}`);
};

export const debugError = (...args: unknown[]) => {
	if (!DEBUG_LOG) return;
	const now = new Date();
	console.error(`[Time: ${now.toLocaleTimeString()}] [ERROR] ${args.join(" ")}`);
};