Get unlimited public & private packages + team-based management with npm Teams.Learn more »

squarelogger

1.2.0 • Public • Published

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');

Install

npm i squarelogger

DownloadsWeekly Downloads

6

Version

1.2.0

License

UNLICENSED

Unpacked Size

1.86 kB

Total Files

3

Last publish

Collaborators

  • avatar