77-node-logger
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i 77-node-logger

      Weekly Downloads

      1

      Version

      2.0.2

      License

      ISC

      Unpacked Size

      2.7 kB

      Total Files

      7

      Last publish

      Collaborators

      • sam77