# jnlwlogger

> Use it

Latest version **0.0.1** (published 2024-04-13) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2024-04-13 |
| First published | 2024-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | baobab.lend |

## Links

- npm: https://www.npmjs.com/package/jnlwlogger
- Repository: https://github.com/whiteVib/jlogger
- Homepage: https://github.com/whiteVib/jlogger#readme
- Issues: https://github.com/whiteVib/jlogger/issues
- npm.io page: https://npm.io/package/jnlwlogger

## Dependencies (1)

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

## Recent versions

- 0.0.1 (latest) — 2024-04-13

## README

# Logger

Logger is a simple logging package for Node.js applications.

## Installation

You can install the Logger package via npm:

```bash
npm install my-logger
```

## Usage

To use the Logger package in your Node.js application, require it and instantiate a new Logger object:

```javascript
const Logger = require('my-logger');

// Instantiate Logger with optional options
const logger = new Logger({ level: 'info' });

// Log messages
logger.info('This is an information message');
logger.warn('This is a warning message');
logger.error('This is an error message');
```

## Options

The Logger constructor accepts an optional `options` object with the following properties:

- `level`: Specifies the minimum log level to output. Possible values are `'info'`, `'warn'`, and `'error'`. Default is `'info'`.

## API

### `Logger(options)`

Creates a new Logger instance with the specified options.

- `options` (Object): Optional options object.

### `log(message, level)`

Logs a message at the specified log level.

- `message` (String): The message to log.
- `level` (String): Optional log level. Defaults to `'info'`.

### `info(message)`

Logs an information message.

- `message` (String): The message to log.

### `warn(message)`

Logs a warning message.

- `message` (String): The message to log.

### `error(message)`

Logs an error message.

- `message` (String): The message to log.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

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