Skip to main content
Version: 11.x

Interface: LoggerLinkOptions<TRouter>

Type parameters

Parameter
TRouter extends AnyRouter

Properties

colorMode

optional colorMode: ColorMode

Color mode

Default

ts
typeof window === 'undefined' ? 'ansi' : 'css'
ts
typeof window === 'undefined' ? 'ansi' : 'css'

Source

packages/client/dist/links/loggerLink.d.ts:42


console

optional console: ConsoleEsque

Used in the built-in defaultLogger

Source

packages/client/dist/links/loggerLink.d.ts:37


enabled

optional enabled: EnabledFn< TRouter >

Source

packages/client/dist/links/loggerLink.d.ts:33


logger

optional logger: LoggerLinkFn< TRouter >

Source

packages/client/dist/links/loggerLink.d.ts:32


withContext

optional withContext: boolean

Include context in the log - defaults to false unless colorMode is 'css'

Source

packages/client/dist/links/loggerLink.d.ts:46


Generated using TypeDoc and typedoc-plugin-markdown