| .. | ||
| ask.ts | ||
| color.ts | ||
| config.ts | ||
| log.ts | ||
| mod.ts | ||
| readme.md | ||
| sym.ts | ||
| term.ts | ||
-/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
catppuccintinycolor2