Logger facade used by RainCatcher modules
Last updated 3 years ago by paolobueno .
MIT · Original npm · Tarball · package.json
$ cnpm install @raincatcher/logger 
SYNC missed versions from official npm registry.

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'});;

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

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

Current Tags

  • 1.1.2                                ...           latest (3 years ago)

5 Versions

  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |