1.0.9 • Published 2 years ago

rundale v1.0.9

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

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

TypeUsageMessage
emergencylog.emergency(message)string \| Object \| Error
alertlog.alert(message)string \| Object \| Error
criticallog.critical(message)string \| Object \| Error
errorlog.error(message)string \| Object \| Error
warninglog.warning(message)string \| Object \| Error
noticelog.notice(message)string \| Object \| Error
infolog.info(message)string \| Object \| Error
debuglog.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
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago