cdm-logger
TypeScript NodeJs Platform
Introduction
A typescript library for Logging.
This library extends the bunyan
npm with factories to create Logger instances:
- ConsoleLogger - create a Console logger
- LogstashAmqpLogger - create a Logstash feed via Amqp
Getting Started
Installation
Install via npm
npm i cdm-logger --save
Example: Logstash Amqp
; //Optional additional Console Logger ; // Register 'logger' with IoC
Example: Console
; ; // or create a logger with default values (in 'short' mode and at 'info' level); // or create a logger with instance of the class; // Register 'logger' with IoCdescribe"Console Logger using inversify",
Consumed Libraries
bunyan
Bunyan Logger
Contributing
Getting started
Install node_modules
via npm
npm i
Install typings
typings install
Build the project (using typescript compiler)
npm run build