Dmitriy Pleshevskiy
19b08ecd3d
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
343 B
TypeScript
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);
|
|
}
|
|
}
|