SynTex Logger
A logging system for your plugin with colors.
Use This In Your Code
let Logger = require('syntex-logger');
let logger = new Logger({ pluginName : 'Demo Plugin' }, { language : 'us', levels : { debug : false }, time : true });
logger.setLogDirectory('/var/demo_plugin/logs');
var level = 'success',
categoryOne = 'first_category',
categoryTwo = 'second_category',
message = 'You got it! :D';
logger.log(level, categoryOne, categoryTwo, message);
logger.debug('Test');
try
{
[ ... ]
}
catch(e)
{
logger.err(e);
}
Troubleshooting
Report
us your Issues
Join
our Discord Server
Logging Levels
error
( same level as logger.err()
)warn
info
success
read
update
debug
( default level when using logger.debug()
)
Supported Languages
English
( us, en )German
( de )German & English
( deen )
For language codes look at /languages/
for current translated phrases.
You can use them like this %update_error%
in your message string.