npm.io
2.0.0 • Published 1 year ago

blf-colorful-appender

Licence
MIT
Version
2.0.0
Deps
3
Size
8 kB
Vulns
0
Weekly
0
Stars
1

blf-colorful-appender

npm package

NPM version NPM Downloads License TypeScript

A ColorfulAppender for base-log-factory.


Documentation

For detailed usage instructions and API references, please visit the official documentation:

View Full Documentation


Quick Start

1. Installation
npm install base-log-factory blf-colorful-appender
2. Basic Usage
// factory.ts
import { LogFactory } from 'base-log-factory';
import { ColorfulAppender } from 'blf-colorful-appender';

export default new LogFactory({
  appenders: [new ColorfulAppender()]
});

// main.ts
import logFactory from './factory';

const logger = logFactory.getLogger('app');
logger.info('Server started successfully');

Contribution Guide

  1. Development Setup

    npm install
  2. Testing

    npm test # Run unit tests
  3. Before Submitting PRs

    • Ensure ESLint is configured (VSCode plugin recommended)
    • Add test cases for new features
    • Update documentation

License

MIT License

Keywords