deno/lib/log
2025-09-26 19:38:24 +02:00
..
ask.ts logger cleanup & proper multiple group support 2024-05-30 19:46:26 +01:00
color.ts logger cleanup & proper multiple group support 2024-05-30 19:46:26 +01:00
config.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
log.ts small logger relogging 2024-08-18 16:29:42 +02:00
mod.ts small logger relogging 2024-08-18 16:29:42 +02:00
readme.md lowercase readme 2025-09-26 19:38:24 +02:00
sym.ts purge execa because it doesnt like deno 2024-07-09 04:14:26 +02:00
term.ts purge execa because it doesnt like deno 2024-07-09 04:14:26 +02:00

-/log

very opinionated aesthetic logger using catppuccin and nerd fonts

import { c, logger, LogLevel } from "-/log/mod.ts";

const log = logger("my-app"), l = log;

l.info("hello, world!");
l.aligned.info(
  ["name", "coolness"],
  ["alice", "100"],
  ["bob", "100"],
);
l("this is info");

l.start("fetching data");
l.finish("fetched data");

function submodule() {
  const l = log.extend("submodule"); // my-app:submodule

  l.info("hello, world!");
}

logger.inform("long module name coming up");
// config
logger.pad({ table: 2 });

const ssh = (host: string) => log(host).custom("dbg", "$", "flamingo");

ssh("ln -s /nginx/sites-available/ravy.dev /nginx/sites-enabled/");

dependencies

  • catppuccin
  • tinycolor2