2.1.1 • Published 6 years ago

post_ltr_logger v2.1.1

Weekly downloads
68
License
MIT
Repository
github
Last release
6 years ago

logger_class_library

Class library that serves as a layer between the logger service and an application

Installation

npm install post_ltr_logger

Usage

import { ILoggerConstructor, Logger } from "post_ltr_logger";
const emailList: string[] = JSON.parse(process.env.EMAIL_LIST);
const emailPort: number = parseInt(process.env.NOTIFICATION_PORT, 10);
const config: ILoggerConstructor = {
  applicationName: "finally",
  emailHost: process.env.NOTIFICATION_HOST,
  emailList,
  emailPort,
  logAPI: process.env.LOG_API,
  nodeENV: process.env.NODE_ENV,
  senderEmail: process.env.NOTIFICATION_EMAIL,
  token: "bearer xxxxxx",
  userID: "testo"
};
const log = new Logger(config);
log.logInfo("Logger is running :)");
2.1.1

6 years ago

2.1.0

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago