open-index/open-npm huggingface dataset:
npm package: @incbank/mirage-ui
Description: TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
Latest version: 1.1.222

# Introduction 
TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project. 

# Getting Started
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
1.	Installation process
2.	Software dependencies
3.	Latest releases
4.	API references

# Build and Test
TODO: Describe and show how to build your code and run the tests. 

# Contribute
TODO: Explain how other users and developers can contribute to make your code better. 

If you want to learn more about creating good readme files then refer the following [guidelines](https://docs.microsoft.com/en-us/azure/devops/repos/git/create-a-readme?view=azure-devops). You can also seek inspiration from the below readme files:
- [ASP.NET Core](https://github.com/aspnet/Home)
- [Visual Studio Code](https://github.com/Microsoft/vscode)
- [Chakra Core](https://github.com/Microsoft/ChakraCore)
npm package: @incentech/enhanced-logger
Description: A powerful, configurable logger for Node.js applications with file and console output support
Author: Your Name
Latest version: 1.0.0

# Enhanced Logger

A powerful, configurable logger for Node.js applications with file and console output support.

## Features

- 📝 Multiple log levels (error, warn, success, info, debug, trace)
- 📁 File and console output
- 🎨 Pretty formatting with colors
- 🔒 Concurrent-safe file writing
- 🧪 Test-friendly
- ⚡ Lightweight and fast
- 🔄 Supports both CommonJS and ES modules

## Installation

```bash
npm install @yourusername/enhanced-logger
# or
yarn add @yourusername/enhanced-logger
```

## Basic Usage

### CommonJS

```javascript
const { logger } = require('@yourusername/enhanced-logger');

logger.info('This is an info message');
logger.success('Operation completed successfully!');
logger.warn('This is a warning');
logger.error('An error occurred', { error: new Error('Something went wrong') });
```

### ES Modules

```javascript
import { logger } from '@yourusername/enhanced-logger';

logger.debug('Debug information');
```

## Configuration

### Creating a Custom Logger

```javascript
const { createLogger } = require('@yourusername/enhanced-logger');

const customLogger = createLogger({
  logLevel: 'info', // default: 'info'
  logToFile: true,  // default: true
  logToConsole: true, // default: true
  logDir: './logs',  // default: './logs'
  colors: true       // default: true
});
```

### Log Levels

Available log levels (from highest to lowest priority):
- `error` - Errors that need immediate attention
- `warn` - Potentially harmful situations
- `success` - Success messages (custom level)
- `info` - General information
- `debug` - Debug information
- `trace` - Very detailed debug information

## API

### Methods

- `logger.error(message, ...args)`
- `logger.warn(message, ...args)`
- `logger.success(message, ...args)`
- `logger.info(message, ...args)`
- `logger.debug(message, ...args)`
- `logger.trace(message, ...args)`
- `logger.child(options)` - Create a child logger with inherited settings

### Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| logLevel | string | 'info' | Minimum log level to output |
| logToFile | boolean | true | Whether to log to files |
| logToConsole | boolean | true | Whether to log to console |
| logDir | string | './logs' | Directory to store log files |
| colors | boolean | true | Enable/disable colored output |

## Advanced Usage

### Child Loggers

Create a child logger with custom settings:

```javascript
const childLogger = logger.child({
  logLevel: 'debug',
  logDir: './debug-logs'
});

childLogger.debug('This will be logged to debug-logs/');
```

### Environment Variables

You can configure the logger using environment variables:

```bash
LOG_LEVEL=debug
LOG_TO_FILE=true
LOG_TO_CONSOLE=true
LOG_DIR=./custom-logs
```

## License

MIT