@storybook/node-logger

  • Version 6.5.9
  • Published
  • 9.69 kB
  • 5 dependencies
  • MIT license

Install

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

Overview

Any node logging that is done through storybook should be done through this package.

Index

Variables

variable colors

const colors: {
pink: chalk.Chalk;
purple: chalk.Chalk;
orange: chalk.Chalk;
green: chalk.Chalk;
blue: chalk.Chalk;
red: chalk.Chalk;
gray: chalk.Chalk;
};

    variable logger

    const logger: {
    verbose: (message: string) => void;
    info: (message: string) => void;
    plain: (message: string) => void;
    line: (count?: number) => void;
    warn: (message: string) => void;
    error: (message: string) => void;
    trace: ({ message, time }: { message: string; time: [number, number] }) => void;
    setLevel: (level?: string) => void;
    };

      variable once

      const once: {
      (type: 'verbose' | 'info' | 'warn' | 'error'): (message: string) => void;
      clear(): void;
      verbose: (message: string) => void;
      info: (message: string) => void;
      warn: (message: string) => void;
      error: (message: string) => void;
      };

        Package Files (1)

        Dependencies (5)

        Dev Dependencies (1)

        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/node-logger.

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