Socket
Socket
Sign inDemoInstall

syntex-logger

Package Overview
Dependencies
0
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    syntex-logger

A Basic Logging System


Version published
Maintainers
1
Install size
28.4 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 08 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc