1.0.16 • Published 7 years ago

otoz-logger v1.0.16

Weekly downloads
35
License
UNLICENSED
Repository
-
Last release
7 years ago

Introduction

A wrapper module around winston specifically written for OTOZ.

Getting Started

  • first install the package npm i otoz-logger
  • Import it in your application import { Logger } from 'otoz-logger'
  • Create logger instance const myLogger = new Logger();
  • Set the following environment variables

LOGGER_STRATEGY=winston
LOGGER_TRANSPORT=appInsights
APPINSIGHTS_INSTRUMENTATIONKEY=your-application-insights-key

Usage

myLogger.logInfo({
    name: 'serverStarted',
    message: 'Express server listening on port ' + PORT,
    meta: {
		corelationId: 'abc-corelationId',
        sessionId: 'abc-sessionId',
        requestId: 'abc-requestId',
    }
});
1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago