1.0.9 • Published 3 years ago

rundale v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago