A simple yet effective logger made in Node.js.
This will show you how to use the Nexus.log package.
You can download it from NPM today.
$ npm i nexus.log
/*
Nexus.log — Test.js
*/
const Nexus = require('./nexus.log.js')
const Log = new Nexus;
// You can ignore this config if you would like.
Log.CreateLogger({
Path: "./Logs/" // Where to store the logs.
})
Log.Info("One!")
Log.Warn("Two!")
Log.Error("Three!")
After you run your script the logs will appear in the packages /Log/
folder.
In the future I plan to add a script that allows you to grab the logs with a single command.