# djuke-logger

> Logger for djuke project.

Latest version **1.0.5** (published 2019-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install djuke-logger
pnpm add djuke-logger
yarn add djuke-logger
bun add djuke-logger
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-10-25 |
| First published | 2019-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | djuke |
| Maintainers | djukeapp |

## Links

- npm: https://www.npmjs.com/package/djuke-logger
- Repository: https://djuke@dev.azure.com/djuke/DJuke/_git/djuke-logger
- npm.io page: https://npm.io/package/djuke-logger

## Dependencies (1)

- [logdna](https://npm.io/package/logdna.md) ^3.3.3

## Recent versions

- 1.0.5 (latest) — 2019-10-25
- 1.0.4 — 2019-10-22
- 1.0.3 — 2019-10-10
- 1.0.2 — 2019-10-09
- 1.0.1 — 2019-10-09

## README

## Important Notice

We do NOT recommend using this package at all. We are not responsible of how this package is used, if used, which we don't recommend.

# Documentation

This package is a wrapper around LogDNA logger and console.log.

## Setup

1. Specify your LogDNA ingestion key as an environment variable named LOGDNA_INGESTION_KEY
2. Specify the application name to appear in the LogDNA logs by setting the environment variable LOGGER_APP_NAME

## How it works

The logs are routed to LogDNA only when process.env.NODE_ENV != 'production'.

Otherwise, logs will be routed to the local console.

## How to use it

`const logger = require('djuke-logger');`

Available methods:

`info (message: string, ...optionalParams: any[])`

`warn (message: string, ...optionalParams: any[])`

`debug (message: string, ...optionalParams: any[])`

`error (message: string, ...optionalParams: any[])`

`fatal (message: string, ...optionalParams: any[])`

`trace (message: string, ...optionalParams: any[])`

## Typescript

To use with Typescript, import the logger like:

`import logger form 'djuke-logger'`

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