parsegraph-log
TypeScript icon, indicating that this package has built-in type declarations

1.9.3 • Public • Published

parsegraph-log

This module provides logging functionality, with support for nested log statements.

import log, { enableLogging, setLogSink } from "./index";

const root = document.getElementById("demo");
enableLogging();
setLogSink((msg) => {
  root.appendChild(document.createTextNode(msg));
  root.appendChild(document.createElement("br"));
});

setInterval(()=>{
  log("Hello!" + new Date());
}, 3000);

Readme

Keywords

none

Package Sidebar

Install

npm i parsegraph-log

Weekly Downloads

2

Version

1.9.3

License

MIT

Unpacked Size

34.7 kB

Total Files

24

Last publish

Collaborators

  • dafrito