1.0.3 • Published 6 months ago
@types/heroku-logger v1.0.3
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
// Type definitions for heroku-logger 1.0
// Project: https://github.com/ianstormtaylor/heroku-logger
// Definitions by: Kyle Vogt <https://github.com/kylevogt>
// Alejandro Moran <https://github.com/AlejandroMoran>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/* =================== 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: Thu, 08 Jul 2021 14:22:49 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Kyle Vogt, and Alejandro Moran.