2.1.1 • Published 5 years ago

post_ltr_logger v2.1.1

Weekly downloads
68
License
MIT
Repository
github
Last release
5 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

5 years ago

2.1.0

5 years ago

2.0.15

5 years ago

2.0.14

5 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago