@types/heroku-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/heroku-logger

Summary

This package contains type definitions for heroku-logger (https://github.com/ianstormtaylor/heroku-logger).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/heroku-logger.

index.d.ts

/* =================== USAGE ===================

    import * as logger from 'heroku-logger';
    catch (error) {
        logger.warn('Do not clutter your log files!', error);
    }

=============================================== */

export function trace(message: string, data?: object): void;
export function debug(message: string, data?: object): void;
export function info(message: string, data?: object): void;
export function warn(message: string, data?: object): void;
export function error(message: string, data?: object): void;
export function fatal(message: string, data?: object): void;

export interface LoggerConfig {
    level?: string | undefined;
    color?: boolean | undefined;
    readable?: boolean | undefined;
    prefix?: string | undefined;
}

export class Logger {
    trace(message: string, data?: object): void;
    debug(message: string, data?: object): void;
    info(message: string, data?: object): void;
    warn(message: string, data?: object): void;
    error(message: string, data?: object): void;
    fatal(message: string, data?: object): void;
    constructor(config: LoggerConfig);
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Kyle Vogt, and Alejandro Moran.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/heroku-logger

Weekly Downloads

1,635

Version

1.0.3

License

MIT

Unpacked Size

5.04 kB

Total Files

5

Last publish

Collaborators

  • types