@storybook/client-logger

  • Version 6.5.12
  • Published
  • 16.4 kB
  • 2 dependencies
  • MIT license

Install

npm i @storybook/client-logger
yarn add @storybook/client-logger
pnpm add @storybook/client-logger

Overview

Any client-side logging that is done through storybook should be done through this package.

Index

Variables

Namespaces

Variables

variable logger

const logger: {
readonly trace: (message: any, ...rest: any[]) => void;
readonly debug: (message: any, ...rest: any[]) => void;
readonly info: (message: any, ...rest: any[]) => void;
readonly warn: (message: any, ...rest: any[]) => void;
readonly error: (message: any, ...rest: any[]) => void;
readonly log: (message: any, ...rest: any[]) => void;
};

    variable once

    const once: {
    (type: keyof typeof logger): (message: any, ...rest: any[]) => void;
    clear(): void;
    trace: (message: any, ...rest: any[]) => void;
    debug: (message: any, ...rest: any[]) => void;
    info: (message: any, ...rest: any[]) => void;
    warn: (message: any, ...rest: any[]) => void;
    error: (message: any, ...rest: any[]) => void;
    log: (message: any, ...rest: any[]) => void;
    };

      variable pretty

      const pretty: {
      (type: keyof typeof logger): (...args: string[]) => void;
      trace: (...args: string[]) => void;
      debug: (...args: string[]) => void;
      info: (...args: string[]) => void;
      warn: (...args: string[]) => void;
      error: (...args: string[]) => void;
      };

        Namespaces

        namespace global

        module 'global' {}

          Package Files (2)

          Dependencies (2)

          Dev Dependencies (0)

          No dev dependencies.

          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/@storybook/client-logger.

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