# app-logging

> Application development logs

Latest version **1.0.4** (published 2020-12-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install app-logging
pnpm add app-logging
yarn add app-logging
bun add app-logging
```

## 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 | 1.0.4 |
| Published | 2020-12-05 |
| First published | 2020-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alhassan Faisal |
| Maintainers | faisalscientist |
| Keywords | App, Logging, Info, Warning, Debug, Notice, Error, Critical, Emergency, Alert |

## Links

- npm: https://www.npmjs.com/package/app-logging
- Repository: https://github.com/faisalscientist/app-logging
- Homepage: https://github.com/faisalscientist/app-logging#readme
- Issues: https://github.com/faisalscientist/app-logging/issues
- npm.io page: https://npm.io/package/app-logging

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2020-12-05
- 1.0.3 — 2020-12-05
- 1.0.2 — 2020-12-05
- 1.0.1 — 2020-11-14
- 1.0.0 — 2020-11-13

## README

# App Logging

app-logging is a javascript log package that helps you write logs in your application. The logs are stored in a storage folder by default in the root of your application.

## Installation

Use the package manager [npm](https://www.npmjs.com/package/app-logging) to install foobar.

```bash
npm install app-logging
```

## Usage

```python
const AppLog = require('app-logging').Log;

const log = new AppLog();

# Writing Info Logs
log.info('info message', 'contextual-data');

# Writing Error Logs
log.error('error message', 'contextual-data');

# Writing Debug Logs
log.info('debug message', 'contextual-data');

# Writing Warning Logs
log.info('warning message', 'contextual-data');

# Writing Critical Logs
log.info('critical message', 'contextual-data');

# Writing Emergency Logs
log.info('emergency message', 'contextual-data');

# Writing Notice Logs
log.info('notice message', 'contextual-data');

# Writing Alert Logs
log.info('alert message', 'contextual-data');
```

### With TypeScript

```python
import { Log } from 'app-logging'

const log = new Log();

# Writing Info Logs
log.info('info message', 'contextual-data');

# Writing Error Logs
log.error('error message', 'contextual-data');

# Writing Debug Logs
log.info('debug message', 'contextual-data');

# Writing Warning Logs
log.info('warning message', 'contextual-data');

# Writing Critical Logs
log.info('critical message', 'contextual-data');

# Writing Emergency Logs
log.info('emergency message', 'contextual-data');

# Writing Notice Logs
log.info('notice message', 'contextual-data');

# Writing Alert Logs
log.info('alert message', 'contextual-data');
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://opensource.org/licenses/MIT)

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