rokot-log
Rokot - Rocketmakers 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 yarn
yarn add rokot-log
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); // Register 'logger' with IoC
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