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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i squarelogger

      Weekly Downloads

      3

      Version

      1.2.0

      License

      UNLICENSED

      Unpacked Size

      1.86 kB

      Total Files

      3

      Last publish

      Collaborators

      • shane-games