Skip to content

Get wonderful colorized log messages straight into your terminal.

License

Notifications You must be signed in to change notification settings

Artmann/tiny-typescript-logger

Repository files navigation

Tiny TypeScript Logger

Github Actions Build Status Codecov Coverage Status Blazing Fast npm version weekly downloads from npm code style: prettier

Example output

Get wonderful colorized log messages straight into your terminal.

Getting Started

Install it using your favorite package manager:

npm install tiny-typescript-logger
yarn install tiny-typescript-logger
pnpm install tiny-typescript-logger

Log anything your dream desires:

import { log } from 'tiny-typescript-logger'

log.info('Order processed successfully.')
log.error('Failed to process order with orderId=12345.')

Log Levels

This library has six built-in log levels, listed in the lowest to highest severity range.

  • Trace (10)
  • Debug (20)
  • Info (30)
  • Warn (40)
  • Error (50)
  • Fatal (60)

Contributing

Contributions are welcome! If you have suggestions or want to contribute new features, open a pull request or file an issue.

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Get wonderful colorized log messages straight into your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages