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

    Class PrettyHandler

    Writes human-readable log records with optional ANSI colors.

    Error values include their message and stack. Use colors: false when the output is a file or another destination that does not process ANSI codes.

    Implements

    Indexable

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

      Writes human-readable log records with optional ANSI colors.

      Error values include their message and stack. Use colors: false when the output is a file or another destination that does not process ANSI codes.

      • () => 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 pretty handler.

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

      Parameters

      • Optionalopts: {
            alwaysAddTrace?: boolean;
            argDelimiter?: string;
            argFormat?: ArgFormatFunction;
            colors?: boolean;
            filters?: Filters;
            level?: Level;
            output?: Output;
        }
        • OptionalalwaysAddTrace?: boolean

          Contains the always add trace.

        • OptionalargDelimiter?: string

          Contains the arg delimiter.

        • OptionalargFormat?: ArgFormatFunction

          Contains the arg format.

        • Optionalcolors?: boolean

          Contains the colors.

        • Optionalfilters?: Filters

          Contains the filters.

        • Optionallevel?: Level

          Contains the level.

        • Optionaloutput?: Output

          Contains the output.

      Returns PrettyHandler