logger2
v0.0.2
Published
Logger system
Downloads
4
Readme
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");