pleshevski.ru/log.ts
Dmitriy Pleshevskiy 19b08ecd3d
All checks were successful
continuous-integration/drone/push Build is passing
use markdown file for about page
2022-06-14 00:30:15 +03:00

14 lines
343 B
TypeScript

export function error(...args: unknown[]): void {
console.log("[ERROR]", ...args);
}
export function info(...args: unknown[]): void {
console.log("[INFO]", ...args);
}
export function debug(...args: unknown[]): void {
// choose better name for this env
if (Deno.env.get("DEBUG") === "1") {
console.log("[DEBUG]", ...args);
}
}