GeezerVison is showing maxgraph.github.io — MaxLogAsLogger | @maxgraph/core
Class MaxLogAsLoggerExperimental
A Logger that uses MaxLog to log messages.
Notice that the log level for this logger are configured in MaxLog.
subject to change or removal. The logging system may be modified in the future without prior notice.
Constructors
Methods
debug
-
debug(message: string): void
Experimental
Returns void
enter
-
enter(message: string): number | undefined
Experimental
Log the specified string at TRACE level and returns the current time in milliseconds.
Returns number | undefined
may return undefined hen the TRACE level is not enabled.
error
-
error(message: string, ...optionalParams: any[]): void
Experimental
Parameters
- message: string
- ...optionalParams: any[]
Returns void
info
-
info(message: string): void
Experimental
Returns void
leave
-
leave(message: string, baseTimestamp?: number): void
Experimental
Log the specified string at TRACE level and also log the difference between the current
time and t0 in milliseconds.
Parameters
- message: string
OptionalbaseTimestamp: number
Returns void
show
-
Experimental
Shows the console in the UI. This may produce no effect in some implementation which doesn't rely on the UI to log.
Returns void
trace
-
trace(message: string): void
Experimental
Returns void
warn
-
warn(message: string): void
Experimental
Returns void