🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@raincatcher/logger

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raincatcher/logger

Logger facade used by RainCatcher modules

latest
npmnpm
Version
1.1.2
Version published
Maintainers
6
Created
Source

RainCatcher Logger Cloud

This module creates logging facade for node.js based applications that is used by all RainCatcher modules. Users can use their own loggers by wrapping them into provided interface.

Enabling logging

By default all RainCatcher framework modules will not log any information to console. Framework users can enable logger by using one of the provided implementations or custom implementation that will extend our interface.

Supported implementations:

  • BunyanLogger Implements Bunyan Used for server side logging
  • ClientLogger Implements LogLevel Used for client (web and mobile) logging
  // Setup logger in your application
  import {BunyanLogger, getLogger} from '@raincatcher/logger';
  const log = new BunyanLogger({name: 'index'});;
  setLogger(log);

  // Use logger in other modules
  getLogger().info('This log will render with BunyanLogger');

See ./example/index.ts for more advanced usages

FAQs

Package last updated on 18 Dec 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