roarr

  • Version 7.0.4
  • Published
  • 71.8 kB
  • 8 dependencies
  • BSD-3-Clause license

Install

npm i roarr
yarn add roarr
pnpm add roarr

Overview

JSON logger for Node.js and browser.

Index

Variables

variable Roarr

const Roarr: Logger;

    variable ROARR

    const ROARR: RoarrGlobalState;

      Type Aliases

      type Logger

      type Logger = LogMethod & {
      adopt: <T>(routine: () => Promise<T>, context: MessageContext) => Promise<T>;
      child: (context: MessageContext | TranslateMessageFunction) => Logger;
      debug: LogMethod;
      error: LogMethod;
      fatal: LogMethod;
      getContext: () => MessageContext;
      info: LogMethod;
      trace: LogMethod;
      warn: LogMethod;
      };

        type Message

        type Message = {
        readonly context: MessageContext;
        readonly message: string;
        readonly sequence: string;
        readonly time: number;
        readonly version: string;
        };

          type MessageEventHandler

          type MessageEventHandler = (message: Message) => void;

            type TranslateMessageFunction

            type TranslateMessageFunction = (message: Message) => Message;

              Package Files (2)

              Dependencies (8)

              Dev Dependencies (21)

              Peer Dependencies (0)

              No peer dependencies.

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/roarr.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/roarr)
              • HTML
                <a href="https://www.jsdocs.io/package/roarr"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>