Skip to content

@graphty/graphty-element / logging / GraphtyLoggerConfig

Interface: GraphtyLoggerConfig ​

Defined in: graphty-element/src/logging/GraphtyLogger.ts:234

Extended configuration options for GraphtyLogger.

Every member is optional and what is absent keeps the value it has, so attaching a destination does not quietly put the level and the module filter back to their defaults.

Extends ​

Properties ​

enabled? ​

optional enabled?: boolean

Defined in: graphty-element/src/logging/types.ts:85

Whether logging is enabled

Inherited from ​

LoggerConfig.enabled


format? ​

optional format?: object

Defined in: graphty-element/src/logging/types.ts:99

Formatting options

colors? ​

optional colors?: boolean

Enable colored output (for console)

module ​

module: boolean

Include module name in output

timestamp ​

timestamp: boolean

Include timestamp in output

timestampFormat? ​

optional timestampFormat?: string

Format for timestamps (default: ISO)

Inherited from ​

LoggerConfig.format


level? ​

optional level?: LogLevel

Defined in: graphty-element/src/logging/types.ts:87

Minimum log level to output

Inherited from ​

LoggerConfig.level


moduleLevels? ​

optional moduleLevels?: Readonly<Record<string, LogLevel>>

Defined in: graphty-element/src/logging/types.ts:97

A level for one module that is not the global level, e.g. { layout: LogLevel.TRACE }.

Keyed by a category segment and matched the way modules is matched, so "layout" covers ["graphty", "layout", "ngraph"]. The most specific segment of a category wins. This is what the documented ?graphty-element-logging=layout:debug,xr:info URL syntax means.

Inherited from ​

LoggerConfig.moduleLevels


modules? ​

optional modules?: string[] | "*"

Defined in: graphty-element/src/logging/types.ts:89

Modules to enable: array of module names or "*" for all

Inherited from ​

LoggerConfig.modules


remoteLogUrl? ​

optional remoteLogUrl?: string

Defined in: graphty-element/src/logging/GraphtyLogger.ts:236

URL of remote log server (e.g., https://localhost:9080)


sinks? ​

optional sinks?: readonly (Sink | LogSinkReference)[]

Defined in: graphty-element/src/logging/GraphtyLogger.ts:238

Destinations to attach: a live object, or the name of a registered one and its options.