0.0.2 • Published 8 years ago
logger2 v0.0.2
Logger
Log manager
Setup
const Logger=require("logger2");
const log=new Logger("projectname",-1);
// Project Name PriorityProject 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 PriorityExample Output:
[projectname] [typename] test messageLogging
log.log("typename","message");