@nebius/js-sdk - v0.2.54
    Preparing search index...

    Writes one JSON object per log record.

    Structured fields appear at the top level. Reserved record fields (time, level, name, message, and trace when generated) replace fields with the same names from args. Values pass through inspectJson.

    Implements

    Indexable

    • [key: symbol]: (() => string) | (() => object)

      Writes one JSON object per log record.

      Structured fields appear at the top level. Reserved record fields (time, level, name, message, and trace when generated) replace fields with the same names from args. Values pass through inspectJson.

      • () => string
          • (): string
          • Returns a concise representation for text inspection.

            Returns string

      • () => object
          • (): object
          • Returns a JSON-safe value for logs.

            Returns object

    Index
    • Creates a JSON handler.

      The default level is Level.INFO, all logger names match, and output goes to the process console.

      Parameters

      • Optionalopts: { alwaysAddTrace?: boolean; filters?: Filters; level?: Level; output?: Output }
        • OptionalalwaysAddTrace?: boolean

          Contains the always add trace.

        • Optionalfilters?: Filters

          Contains the filters.

        • Optionallevel?: Level

          Contains the level.

        • Optionaloutput?: Output

          Contains the output.

      Returns JsonHandler