Lightweight, modular JSON logger for `Deno` with support for external formatters and transports.
Repository
Current version released
4 years ago
Papyrus
Papyrus is a JSON logger for Deno that supports child loggers and external pluggins for formatting and consuming logs.
Import
Import the latest release.
// As named import
import { Papyrus } from "https://deno.land/x/papyrus/mod.ts";
// Or as default import
import Papyrus from "https://deno.land/x/papyrus/mod.ts";
Basic usage
This is the easiest way to use Papyrus.
const logger = new Papyrus({
level: "info",
useLabels: true,
});
logger.info("Hello World!");
// Output:
// {"level":"info","time":1602366662755,"message":"Hello World!"}
More coming…
This module is still in development. More documentation coming soon!
Contributions
PRs are welcome!