@taotiejs/logger

0.3.1 • Public • Published

Taotie Logger

npm npm downloads license

github

Logger client of Taotie, transport logs by stdout and udp.

Installation

npm install @taotiejs/logger

Usage

const logger = require('@taotiejs/logger');

logger.configuer({
  project: 'PROJECT NAME',
  console: {
    level: trace,
  },
  udp: process.env.NODE_ENV == 'production',
  serializers: {},
  recognizer(logArguments) {
    return logArguments;
  }
});

Server

You may use @taotiejs/server for log collecting and querying.

/@taotiejs/logger/

    Package Sidebar

    Install

    npm i @taotiejs/logger

    Weekly Downloads

    0

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    8.59 kB

    Total Files

    7

    Last publish

    Collaborators

    • cweili