FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/logger / formatLogger

Function: formatLogger()

formatLogger(fmt, ...args): string

Formats the provided arguments into a string, filtering out any objects with a __hidden__ property set to true. If formatting fails, it attempts to stringify each argument individually.

Parameters

fmt

any

args

...any[]

The arguments to format.

Returns

string

The formatted string.