Interface IDbgMemoryProviderConfig

Defines the configuration options for the console debug provider.

Example

import { $Dbg } from "@nevware21/ts-debug";
import { createMemoryProvider } from "@nevware21/ts-debug-provider";

// Set the config to enable debug messages to be displayed
// to the console
let dbgConfig = {
lvl: DblLevel.Debug
};

let provider = createMemoryProvider(dbgConfig);
$Dbg.addProvider(provider);

Hierarchy

Properties

Properties

count?: number

The maximum number of log message to retain in-memory.

Example

// Set the config to enable debug messages to be displayed
// to the console
let dbgConfig = {
count: 100
};
lvl?: number

The maximum log message level each provider will have its own default value.

Example

// Set the config to enable debug messages to be displayed
// to the console
let dbgConfig = {
lvl: DblLevel.Debug
};

Generated using TypeDoc