Socket
Socket
Sign inDemoInstall

syntex-logger

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syntex-logger

A Basic Logging System


Version published
Maintainers
1
Created
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', 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

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

Package last updated on 04 Feb 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc