Defines the configuration options for the callback debug provider.
import { $Dbg } from "@nevware21/ts-debug";import { createCallbackProvider } from "@nevware21/ts-debug-provider";// Set the config to enable debug messages to be displayed// to the consolelet dbgConfig = { lvl: DblLevel.Debug, cb: () => { }};let provider = createCallbackProvider(dbgConfig);$Dbg.addProvider(provider); Copy
import { $Dbg } from "@nevware21/ts-debug";import { createCallbackProvider } from "@nevware21/ts-debug-provider";// Set the config to enable debug messages to be displayed// to the consolelet dbgConfig = { lvl: DblLevel.Debug, cb: () => { }};let provider = createCallbackProvider(dbgConfig);$Dbg.addProvider(provider);
The callback function to call when logging a message
Optional
The maximum log message level each provider will have its own default value.
// Set the config to enable debug messages to be displayed// to the consolelet dbgConfig = { lvl: DblLevel.Debug}; Copy
// Set the config to enable debug messages to be displayed// to the consolelet dbgConfig = { lvl: DblLevel.Debug};
Defines the configuration options for the callback debug provider.
Example