77-node-logger

This is really just a super simple fs logging class.

Usage no npm install needed!

<script type="module">
  import 7NodeLogger from 'https://cdn.skypack.dev/77-node-logger';
</script>

README

77 Node Logger

This is really just a super simple fs logging class.

const { Logger, CSVLogger } = require("77-node-logger");

const log = new Logger("test");

log.add("This is an example log!");

log.end()

const csvLog = new CSVLogger("csv", ["Title", "Name", "Date"]);

csvLog.add(["Test Title", "Test Name", "Test Date"])

csvLog.end();

This will write a log file in ./logs/test.txt with a log of This is an example log!.

This will also write a csv file in ./logs/csv.csv