Optional
clearfunction to clear the console, e.g. send the ASCII ctrl character
Optional
formatter?: ((args: unknown[]) => string)format given values, either by using a format string as first param or otherwise display values in a well readable format, see https://console.spec.whatwg.org/#formatter
Optional
inspect?: ((args: unknown[]) => string)format js values to be well readable
Optional
logger?: ((logLevel: string, args: unknown[], options: ConsolePrinterOptions) => void)function to handle normal log messages, see https://console.spec.whatwg.org/#logger
function to print messages to somewhere, see https://console.spec.whatwg.org/#printer
Creates a custom
console
object.