@azashi/log1

2.0.2 • Public • Published

@azashi/log1

log1 (package) GitHub license npm (version)

Log easily with date-time and string.

Install

npm install @azashi/log1

Usage

Has two methods,

1. log(str,lvl)

Takes string and optional parameter level as input and returns a log statement. If lvl is given as 0 then returns undefined.

2. clog(str,lvl)

Takes string and optional parameter level as input and prints a log on console. If lvl is given as 0 then prints nothing.

 const LogOne = require("@azashi/log1");

 const output = LogOne.log("Print with date-time");

 console.log(output);

 // Mon Nov 25 2019 23:27:15 | Print with date-time

 LogOne.clog("Directly log this");

 // Sat Dec 14 2019 23:27:15 | Directly log this

Readme

Keywords

Package Sidebar

Install

npm i @azashi/log1

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

3.47 kB

Total Files

4

Last publish

Collaborators

  • azashi