0.0.5 • Published 2 years ago

@ucraft-com/logger v0.0.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@ucraft-com/logger

logger is an npm package for logging in Node.js applications. It is based on the popular Winston logging library and provides customizable logging functionality.

Key Features

  • Supports both logging of errors and info messages
  • Customizable logging levels
  • Uses the Winston package for reliable logging functionality
  • Built-in transports for common logging destinations
  • Simple API for adding your own transports
  • Configurable log formatting

Usage

To use logger, install it via npm:

npm install @ucraft-com/logger

Then, require it in your code:

const logger = require('@ucraft-com/logger');

You can log messages at different levels:

logger.info('This is an informational message');
logger.error('This is an error message');

By default, logger logs messages to the console. However, you can configure it to use other transports such as a file or a database. You can also customize the log formatting.

Overall, logger is a flexible and powerful logging solution that can help you track and debug your Node.js applications.