syntex-logger

1.0.8 • Public • Published

SynTex Logger

A logging system for your plugin with colors.

NPM Recommended Version NPM Beta Version NPM Downloads GitHub Commits GitHub Code Size


Use This In Your Code

let Logger = require('syntex-logger');

let logger = new Logger({ pluginName : 'Demo Plugin', language : 'us', config : { debug : false } });

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

GitHub Issues

  • Report us your Issues
  • Join our Discord Server

Discord


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.

Package Sidebar

Install

npm i syntex-logger

Weekly Downloads

23

Version

1.0.8

License

ISC

Unpacked Size

29.1 kB

Total Files

9

Last publish

Collaborators

  • syntexdzn