Get wonderful colorized log messages straight into your terminal.
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.')
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
)
Contributions are welcome! If you have suggestions or want to contribute new features, open a pull request or file an issue.
- Fork the repository.
- Create a feature branch (
git checkout -b feature/new-feature
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.