# post_ltr_logger

> Class library that implements the logger service

Latest version **2.1.1** (published 2019-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install post_ltr_logger
pnpm add post_ltr_logger
yarn add post_ltr_logger
bun add post_ltr_logger
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2019-05-31 |
| First published | 2019-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 35.5 KB |
| Known vulnerabilities | 0 (+39 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | lil_doggo, ryanwbell, yzhaopost |

## Links

- npm: https://www.npmjs.com/package/post_ltr_logger
- Repository: https://github.com/Commission-on-POST/logger_class_library
- Homepage: https://github.com/Commission-on-POST/logger_class_library#readme
- Issues: https://github.com/Commission-on-POST/logger_class_library/issues
- npm.io page: https://npm.io/package/post_ltr_logger

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.1.0

## Recent versions

- 2.1.1 (latest) — 2019-05-31
- 2.1.0 — 2019-05-31
- 2.0.15 — 2019-05-13
- 2.0.14 — 2019-05-07
- 2.0.13 — 2019-04-22
- 2.0.12 — 2019-04-17
- 2.0.11 — 2019-04-17
- 2.0.10 — 2019-04-17
- 2.0.9 — 2019-04-17
- 2.0.8 — 2019-04-17
- 2.0.7 — 2019-04-17
- 2.0.6 — 2019-04-17
- 2.0.4 — 2019-04-17
- 2.0.3 — 2019-04-17
- 2.0.2 — 2019-04-16
- … 5 more at https://npm.io/package/post_ltr_logger/versions

## README

# logger_class_library

Class library that serves as a layer between the logger service and an application

# Installation

`npm install post_ltr_logger`

# Usage

```javascript
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 :)");
```

---
_Source: https://npm.io/package/post_ltr_logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
