2022-06-14 00:30:15 +03:00
|
|
|
export function error(...args: unknown[]): void {
|
|
|
|
console.log("[ERROR]", ...args);
|
|
|
|
}
|
|
|
|
|
2022-03-16 22:17:07 +03:00
|
|
|
export function info(...args: unknown[]): void {
|
|
|
|
console.log("[INFO]", ...args);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function debug(...args: unknown[]): void {
|
2022-06-08 23:31:59 +03:00
|
|
|
// choose better name for this env
|
|
|
|
if (Deno.env.get("DEBUG") === "1") {
|
|
|
|
console.log("[DEBUG]", ...args);
|
|
|
|
}
|
2022-03-16 22:17:07 +03:00
|
|
|
}
|