0.0.2 • Published 6 years ago

logger2 v0.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

Logger

Log manager

Setup

const Logger=require("logger2");
const log=new Logger("projectname",-1);
//                   Project Name  Priority

Project Name is the prefix before all logs Priority max priority for logs

Prioritys

When creating a log type, you specify a priority. If the priority of that log is <= Max Priority it will log it.

Creating a log type

log.type("typename",5);
//       Type Name  Priority

Example Output:

[projectname] [typename] test message

Logging

log.log("typename","message");