gto22834 / loggfy

The console package for different env.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logify

Install

  • $ npm install Logify

Introduction

Pack all concole message for easy debug.

Log level Mean Note icon
LOG Develop adjust console.log none
INFO Record the data from api console.info i
WARN Warning console.warn !
ERROR The error message console.error x

Benefit

  1. Help to find the bug.
  2. Contribute to module testing.

Important

The console affect

  1. Yes, it will reduce the speed, though only negligibly.
  2. But, don't use it as it's too easy for a person to read your logs.

Usage

let debug = PackConsole;
debug.error('ERROR'); // 'ERROR'

TODO:

  • Style the console
  • suffix the console
  • elastic
  • sentry

About

The console package for different env.

License:MIT License


Languages

Language:JavaScript 92.7%Language:CSS 5.5%Language:HTML 1.8%