Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hugla-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hugla-logger

hugla web framework's node back-end logger module

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

HuglaLogger

Hugla web framework's node back-end logger module

Build Status Coverage Status

Usage

Here is a descriptive example of using HuglaLogger


// require the module
const HuglaLogger = require('hugla-logger');

// instantiate
const huglaLogger = new HuglaLogger();

// and use
huglaLogger.debug('debug message');
// result: DEBUG debug message

huglaLogger.info('info message');
// result: INFO info message

huglaLogger.warn('warning message');
// result: WARN warning message

huglaLogger.error('error message');
// result: ERROR error message

You can also use "prefix" and "module" options`


const HuglaLogger = require('hugla-logger');

const prefixedLogger = new HuglaLogger({ prefix: 'example' });

prefixedLogger.debug('debug message');
// result: example DEBUG debug message

const moduleLogger = new HuglaLogger({ module: 'example' });

moduleLogger.debug('debug message');
// result: [example] DEBUG debug message

License

MIT

Keywords

FAQs

Package last updated on 13 Aug 2017

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