squarelogger
v1.2.0
Published
A Node.js library for logging info, warnings, and Errors.
Downloads
1
Readme
SquareLogger
A Node.js library for logging info, warnings, and Errors
Installation
npm i squarelogger
Docs
Uses
Importing squarelogger into your project.
const squareLogger = require('squarelogger');
Methods of logging
const squareLogger = require('squarelogger');
squarelogger.logInfo('info'); // -> [INFO]: Info
squarelogger.logWarn('warning'); // -> [WARN]: warning
squarelogger.logError('error'); // -> [ERROR]: error
squarelogger.logDebug('debug'); // -> [DEBUG]: debug
Basic example of creating a log file
const squareLogger = require('squarelogger');
squarelogger.logInfo('Program Started');