open-index/open-npm huggingface dataset:
npm package: @modrgg/logger
Description: The official logger for [Modr](https://modr.gg). Created by [doge](https://github.com/tbnritzdoge).
Latest version: 1.0.2

# @modrgg/logger

The official logger for [Modr](https://modr.gg). Created by [doge](https://github.com/tbnritzdoge).

## Features

-   Extremely fast
-   Fully ready for TypeScript
-   Includes ESM ready entrypoint

## Installation

**Note:** `@modrgg/logger` requires Node 18 or higher to run.

<details>
    <summary>NPM</summary>

    npm install @modrgg/logger

</details>

<details>
    <summary>Yarn</summary>

    yarn add @modrgg/logger

</details>

<details>
    <summary>PNPM</summary>

    pnpm install @modrgg/logger

</details>

## Examples

### Creating a simple logger:

```ts
import { Logger } from '@modrgg/logger';

const logger = new Logger('your_app_name');

logger.info('Some information here!');
logger.warn('Some warning here!');
logger.error('Some error here!');
logger.debug('Some verbose log here!');
```

### Creating a logger with a custom scope:

```ts
import { Logger, config } from '@modrgg/logger';

const logger = new Logger('your_app_name');
const cfg = config({ name: 'file_manager' });

// Outputs: <HH:MM:SS> <DD-MM-YYYY> INFO <PID> (your_app_name:file_manager): Loaded all files!
logger.info(cfg, 'Loaded all files!');
```

## License

Licensed under [GNU GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt).