0.2.7 • Published 6 months ago

@types/bunyan-config v0.2.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/bunyan-config

Summary

This package contains type definitions for bunyan-config (https://github.com/LSEducation/bunyan-config).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bunyan-config.

index.d.ts

// Type definitions for bunyan-config 0.2.0
// Project: https://github.com/LSEducation/bunyan-config
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

/// <reference types="bunyan"/>

declare module "bunyan-config" {
    import * as bunyan from "bunyan";
    interface StreamConfiguration {
        name: string,
        params?: {
            host: string,
            port: number
        } | undefined
    }

    interface Stream {
        type?: string | undefined;
        level?: bunyan.LogLevel | undefined;
        path?: string | undefined;
        stream?: string | StreamConfiguration | undefined
        closeOnExit?: boolean | undefined;
        period?: string | undefined;
        count?: number | undefined;
    }

    /**
     * Configuration.
     * @interface
     */
    interface Configuration {
        name: string;
        streams?: Stream[] | undefined;
        level?: string | number | undefined;
        stream?: NodeJS.WritableStream | undefined;
        serializers?: {} | undefined;
        src?: boolean | undefined;
    }

    /**
     * Constructor.
     * @param {Configuration} [jsonConfig] A JSON configuration.
     * @return {LoggerOptions} A logger options.
     */
    function bunyanConfig(jsonConfig?: Configuration): bunyan.LoggerOptions;
    export = bunyanConfig;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 00:35:45 GMT
  • Dependencies: @types/bunyan
  • Global values: none

Credits

These definitions were written by Cyril Schumacher.

0.2.7

6 months ago

0.2.6

7 months ago

0.2.5

8 months ago

0.2.4

3 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

8 years ago