js-easy-logger
v1.0.8
Published
Easy js logger contains simple four functions
Downloads
4
Readme
Project Title
Easy js logger contains simple four functions
1. info
2. warn
3. error
4. debug
You can install it using
1. npm
2. yarn
API Reference
Import the package
const logger = require("js-easy-logger")
Print information
const logger = require("js-easy-logger")
logger.info("Hello this is js easy logger")
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| object
| string
,number
,object
| the message object
Warning
const logger = require("js-easy-logger")
logger.warn("This is a warning")
| Parameter | Type | Description |
| :------- | :-------- | :-------------- |
| object
| string
,number
,object
| the message object
Show Erros
const logger = require("js-easy-logger)
logger.error("This is an error")
| Parameter | Type | Description |
| :-------- | :--- | :---------- |
| object
| string
,number
,object
| the message
Debug
const logger = require("js-easy-logger)
logger.debug("Where is the username:")
| Parameter | Type | Description |
| :-------- | :--- | :---------- |
| object
| string
,number
,object
| the message