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


npm i roarr
yarn add roarr
pnpm add roarr


JSON logger for Node.js and browser.



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.


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

              You may also use to create a custom badge linking to

              • Markdown
              • HTML
                <a href=""><img src="" alt=""></a>