rundale
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Rundale.js

Helper services for Node.js

Supporting services

Currently Rundale.js support log service only. We are working on more services. Hopefully it will available soon.

Log

Usage

Type Usage Message
emergency log.emergency(message) string | Object | Error
alert log.alert(message) string | Object | Error
critical log.critical(message) string | Object | Error
error log.error(message) string | Object | Error
warning log.warning(message) string | Object | Error
notice log.notice(message) string | Object | Error
info log.info(message) string | Object | Error
debug log.debug(message) string | Object | Error

Example

  const { log } = require('rundale')

  log.info('User logged in')
  log.debug({ status: 404 })
  log.error(new Error('Unable to process mail'))

Configuration

Here is the default Rundale configuration.

{
  "log": {
    "path": "./rundale.log",
    "maxSize": "10MB" 
  }
}

You can create a rundale.config.json file in your project's root directory and override this configuration by initializing Rundale by running the following command.

npx rundale
> init
Successfully initialized. You can find the config file from rundale.config.json

Package Sidebar

Install

npm i rundale

Weekly Downloads

3

Version

1.0.9

License

ISC

Unpacked Size

12.9 kB

Total Files

16

Last publish

Collaborators

  • renjithvk