Giter VIP home page Giter VIP logo

fastlogjs's Introduction

Fastlog JS ⚡📰

Description

⚡ Supercharged console logs for your JS apps. Inspired by gabrielefronze/fastlog.

Installation

npm i --save-dev fastlogjs 

Usage

import fastlog from 'fastlogjs';

fastlog('Just a normal log')

const level = 1;
const options = "XYZ";

fastlog(`Message ${options}`, level);
[LOG: 1/2/2021, 7:25:04 pm] Just a normal log
[INFO: 1/2/2021, 7:25:04 pm] Message XYZ

Log Levels

Fastlog provides 4 log levels -

Level INFO Used for Color
1 INFO Info from the server/app Cyan
2 WARNING Warnings logs Yellow
3 SUCCESS Succes from an action Green
4 ERROR Error messages Red
fastlog('This is an Info', 1) //INFO
fastlog('This is an Info', 2) //WARNING
fastlog('This is an Info', 3) //SUCCESS
fastlog('This is an Info', 4) //ERROR

fastlogjs's People

Contributors

viveknigam3003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.