test-filesystem
    Preparing search index...

    Function logObject

    • Log out an object in a nicely formatted way.

      Parameters

      • object: any

        The object (or any value) to log.

      • label: string = 'logging'

        A label printed alongside the object, to identify this log call.

      • outputType: "string" | "debug" | "error" | "log" | "warn" = 'log'

        Which console method to use ('debug'|'error'|'log'|'warn'), or 'string' to return a formatted string instead of logging.

      • forceOutputType: boolean = false

        If true, use specified output regardless of environment.

      Returns string | void

      The formatted string when outputType is 'string' (or forced to it); otherwise undefined, since the object is logged directly to the console.