loli

0.0.5 • Public • Published

loli

Log tool designed for cluster, using Redis

Usage

Install as a package, for logging

loli = require 'loli'
 
log = loli.create {
  channel:loli.default_channel
  level:loli.DEBUG
  port:6379
  host:'127.0.0.1'
  option:null
}

CLI usage, for monitor

lolicon --help

Notice

  • loli itself is log module, loli.create create a log instance with a RedisStream.

  • the port,host,option part of constructor params will be passed direct to redis.createClient

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i loli

    Weekly Downloads

    5

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • yanke_guo