• Version 2.2.5
  • Published
  • 123 kB
  • No dependencies
  • MIT license


npm i ts-log
yarn add ts-log
pnpm add ts-log


Abstract logger TypeScript interface with a dummy logger that does nothing, useful for libraries.



variable dummyLogger

const dummyLogger: Logger;
  • Dummy logger that does not do anything.

    Useful as a default for some library that the user might want to get logs out of.


interface Logger

interface Logger {}
  • Represents a generic logger that could be a simple console, bunyan etc.

method debug

debug: (message?: any, ...optionalParams: any[]) => void;

    method error

    error: (message?: any, ...optionalParams: any[]) => void;

      method info

      info: (message?: any, ...optionalParams: any[]) => void;

        method trace

        trace: (message?: any, ...optionalParams: any[]) => void;

          method warn

          warn: (message?: any, ...optionalParams: any[]) => void;

            index signature

            [x: string]: any;

              Package Files (1)

              Dependencies (0)

              No dependencies.

              Dev Dependencies (11)

              Peer Dependencies (0)

              No peer dependencies.


              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/ts-log.

              • Markdown
              • HTML
                <a href="https://www.jsdocs.io/package/ts-log"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>