2.1.5 • Published 6 months ago

@types/system-logger v2.1.5

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

Installation

npm install --save @types/system-logger

Summary

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

Details

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

index.d.ts

// Type definitions for system-logger 2.1
// Project: https://github.com/leocwlam/system-logger
// Definitions by: Leo Lam <https://github.com/leocwlam>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.1

export enum level {
  error = 0,
  warn = 1,
  info = 2,
  verbose = 3,
  debug = 4,
  silly = 5,
}

export enum fileRotateType {
  monthly = 0,
  weekly = 1,
  daily = 2,
  hourly = 3,
  minutely = 4,
}

export interface LoggerConfiguration {
  level: level;
  silent?: boolean | undefined;
  externalDisplayFormat?: any;
}

export interface FileConfiguration {
  saveToFileName?: string | undefined;
  isFileRotate?: boolean | undefined;
  fileRotateType?: fileRotateType | undefined;
  fileRotateMaxSize?: number | undefined;
}

export interface SourcesConfiguration {
  levels: level[];
  connector: any;
  callback: any;
}

export class Logger {
  constructor(
    configuration?: LoggerConfiguration,
    fileConfig?: FileConfiguration,
    sourceConfig?: SourcesConfiguration,
  );

  log(level: level | string, message: string, optional?: any): void;
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:33:23 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Leo Lam.

2.1.4

7 months ago

2.1.3

8 months ago

2.1.5

6 months ago

2.1.2

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago