@5k-rewrite/logger

Simple custom logger to be shared across 5k projects

Usage no npm install needed!

<script type="module">
  import 5kRewriteLogger from 'https://cdn.skypack.dev/@5k-rewrite/logger';
</script>

README

Logger

Simple custom logger to be shared across 5k projects

Usage

import { info, error, success } from "@5k-rewrite/logger";

info("MARKER 1", { a: 1, b: 2 });

success("MARKER 2", { c: 3, d: 4 });

const func1 = () => {
  try {
    throw new Error("TEST");
  } catch (e) {
    error("MARKER 3", { val: 1 }, e);
  }
};

func1();

This would log the output:

Example output

Maintainers & Contributors

See CONTRIBUTING.md for more information on maintenance and publishing.