logloc

Add source file location to console logger methods

Usage no npm install needed!

<script type="module">
  import logloc from 'https://cdn.skypack.dev/logloc';
</script>

README

logloc

Adds source location to console logger statements, globally.

This might help find where particular logs are coming from, even if they come from a library somewhere.

Quickstart

npm install logloc

require("logloc");

function runme() {
  console.log("Logged!");
}
runme(); // Logs "foo (at <file>:<line>:<col>)"