Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/unilogger/src/logger.ts>Logger#fillParams

Logger utility module for Deno
Latest
method Logger.prototype.fillParams
import { Logger } from "https://deno.land/x/unilogger@v1.1.0/src/logger.ts";

Fill the parameters in the message.

Parameters

message: string

The message to fill.

params: unknown[]

The params to use to fill the message.

Returns

string

The message with all parameters used. If number of placeholders is greater than the number of params, then those placeholders will be returned as "{}" in the message.