This package has been deprecated

Author message:

No

cinovo-logtest

0.0.3 • Public • Published
       __                                         /\_ \                 /\ \__               /\ \__
  ___ /\_\    ___     ___   __  __    ___         \//\ \     ___      __\ \ ,_\    __    ____\ \ ,_\
 /'___\/\ \ /' _ `\  / __`\/\ \/\ \  / __`\  _______\ \ \   / __`\  /'_ `\ \ \/  /'__`\ /',__\\ \ \/
/\ \__/\ \ \/\ \/\ \/\ \L\ \ \ \_/ |/\ \L\ \/\______\\_\ \_/\ \L\ \/\ \L\ \ \ \_/\  __//\__, `\\ \ \_
\ \____\\ \_\ \_\ \_\ \____/\ \___/ \ \____/\/______//\____\ \____/\ \____ \ \__\ \____\/\____/ \ \__\
 \/____/ \/_/\/_/\/_/\/___/  \/__/   \/___/          \/____/\/___/  \/___L\ \/__/\/____/\/___/   \/__/
                                                                      /\____/
                                                                      \_/__/

cinovo-logtest

Logtest for Node.js with multiple storage engines for distributed log testing.

API

createLogTest(cfg, callback)

  • cfg: see Configuration
  • callback: Function(err, instance)
    • err: Error
    • instance: LogTest

Configuration

  • rules: Array of Rule
  • datastore: String["memory", "redis"] (optional; default: memory)
  • redisHost: String (optional
  • redisPort: Number (optional)

Rule

  • id: String
  • if: (one of the keys must be set)
    • level: RegExp (optional)
    • `hostname: RegExp (optional)
    • `origin: RegExp (optional)
    • message: RegExp (optional)
  • threshold: (optional)
    • count: Number
    • timeWindow: Number
    • timeUnit: String["millis", "seconds", "minutes", "hours"] (optional; default: seconds)
    • aggregation: String["*", "hostname", "origin"] (optional; default: *)

LogTest

test(log, callback)

  • log Log (see cinovo-logger.Log
  • callback: Function(err, result)
    • err: Error
    • result: Boolean
    • ruleIds: String[] Triggered rule ids.

Readme

Keywords

none

Package Sidebar

Install

npm i cinovo-logtest

Weekly Downloads

0

Version

0.0.3

License

none

Last publish

Collaborators

  • cinovo