Skip to content

fi-krish/trevenant

Repository files navigation


Trevenant

Beautiful Opinionated Logging for Node.js ✍️

🤓 Benefits

  • Beautiful - Beautifully formatted logs with colors and symbols
  • Error Handling - Error handling with stack traces
  • Readable - Readable logs with proper indentation

❓ Why do I use a logger?

Default logging is not very readable. It's hard to distinguish between different log levels and it's hard to read the stack trace. Trevenant fixes this by providing a beautiful and readable logging experience.

console.log just dumps the data to the console. Trevenant provides a structured logging experience by providing a consistent format for all the logs.

🌟 Installation

There are various ways to install trevenant. Like package managers, content delivery networks, local copies...

📦 Package Managers

💝 NPM Npm Downloads

npm install trevenant

🐱Yarn Yarn Downloads

yarn add trevenant

✨ Usage

Trevenant is a simple logger. It provides a simple API to log messages.

const { Trevenant } = require('trevenant')

const logger = new Trevenant()

logger.info('Hello World!')

// Other log levels

logger.debug('Hello World!')
logger.success('Hello World!')
logger.warn('Hello World!')
logger.error('Hello World!')
logger.fatal(new Error('Errrorrilla'))

📞 We're Ready To Support

❤ Thanks to our supporters

GitHub Stargazers

About

Beautiful Opinionated Logging for Node.js ✍️

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published