Repository
Current version released
4 years ago
Versions
Deno Debug 
Debug utility for deno.
Usage
import debug from "https://deno.land/x/debuglog/debug.ts";
// create debugger
const service = debug("service");
const serviceName = "app";
// log
service("booting %s", serviceName);Then run your app.
> DEBUG=* deno run --allow-env app.tsTodo
- extending debuggers
- custom log functions
- custom formatters
-
logoverride in all namespaces - inspect opts
- detecting color support
- non-tty env
- add
debugto registry
Notes
- Currently debug assumes it is TTY and shows colors by default.
- Deno’s
inspectdiffers from node’sutil.inspectso the output may not be the same. - We’re using a custom
formatfunction ported fromutil. Might be cool to extract it whenutilis ported entirely. - We should cover more functionality with tests.