Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Logger

Index

Functions

Functions

init

  • init(timestamp?: boolean, location?: boolean): void
  • description

    Adds more capabilities to console.log

    example
    const UTILS =  require("@iotechpis/utils")
    let timestamp = true;
    let location = true;
    UTILS.Logger.init(timestamp, location);

    console.log("test");
    //[17:19:05] [warn] test at (~/location/file.js)

    console.warn(null)
    //[17:19:05] [log] null at (~/location/file.js)

    Parameters

    • timestamp: boolean = true
    • location: boolean = true

    Returns void

Generated using TypeDoc