@namics/remlog-utils

### Contents

Stats

StarsIssuesVersionUpdatedCreatedSize
@namics/remlog-utils
200.2.23 years ago4 years agoMinified + gzip package size for @namics/remlog-utils in KB

Readme

@namics/remlog-utils

Contents

const {
    URLS,
    LOGLEVEL,
    encodePayloadForUrl,
    getTracerImageUrl,
    getTraceUrl,
    getLogLevelName
} = require("@namics/remlog-utils");

Signatures

encodePayloadForUrl(payload: Object): string
getTracerImageUrl(config: { host: string, port: number }, payload: Object): string
getTraceUrl(config: { host: string, port: number }, payload: Object): string
getLogLevelName(logLevel: number): string

URLs

  • DASHBOARD (/)
  • LOGS (/logs.json)
  • LOG (/logs/:id.json)
  • TRACER_IMAGE (/tracer.jpg)
  • TRACE (/trace)

Loglevels

The loglevels are inspired by Apache's log4j logging services.

  • ALL (0)
  • TRACE (1)
  • DEBUG (2)
  • INFO (3)
  • WARN (4)
  • ERROR (5)
  • FATAL (6)
  • OFF (7)

Review the Changelog

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.