@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 ​
Partial<LoggerConfig>
Properties ​
enabled? ​
optionalenabled?:boolean
Defined in: graphty-element/src/logging/types.ts:85
Whether logging is enabled
Inherited from ​
format? ​
optionalformat?:object
Defined in: graphty-element/src/logging/types.ts:99
Formatting options
colors? ​
optionalcolors?:boolean
Enable colored output (for console)
module ​
module:
boolean
Include module name in output
timestamp ​
timestamp:
boolean
Include timestamp in output
timestampFormat? ​
optionaltimestampFormat?:string
Format for timestamps (default: ISO)
Inherited from ​
level? ​
optionallevel?:LogLevel
Defined in: graphty-element/src/logging/types.ts:87
Minimum log level to output
Inherited from ​
moduleLevels? ​
optionalmoduleLevels?: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 ​
modules? ​
optionalmodules?:string[] |"*"
Defined in: graphty-element/src/logging/types.ts:89
Modules to enable: array of module names or "*" for all
Inherited from ​
remoteLogUrl? ​
optionalremoteLogUrl?:string
Defined in: graphty-element/src/logging/GraphtyLogger.ts:236
URL of remote log server (e.g., https://localhost:9080)
sinks? ​
optionalsinks?: 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.