ProtectedconstructorOptionalisInternalConstructor: booleanStaticmessageGets the number of new entries.
StaticmessagesStaticclearRemoves all log entries.
Optionalverbosity: EnumValue<LogVerbosity>Optionalcategory: numberStaticlogLogs a new informative message to the global debug log.
Message to log.
Optionalcategory: number
Optional index of the category to group the message under.
StaticlogLogs a new warning message to the global debug log.
Message to log.
Optionalcategory: number
Optional index of the category to group the message under.
StaticlogLogs a new error message to the global debug log.
Message to log.
Optionalcategory: number
Optional index of the category to group the message under.
StaticlogLogs a new message to the global debug log using the provided type.
Message to log.
Verbosity level defining message importance.
Optionalcategory: number
Optional index of the category to group the message under.
StaticlogLogs a new trace message to the global debug log.
Message to log.
Optionalcategory: number
Optional index of the category to group the message under.
StaticlogLogs a new warning message to the global debug log.
Message to log.
Optionalcategory: number
Optional index of the category to group the message under.
StaticsaveSaves a log about the current state of the application to the specified location.
Absolute path to the log filename.
Optionaltype: EnumValue<SavedLogType>
Format of the saved log.
StaticsubmitUploads a single locally-stored crash report to the cloud crash-report endpoint.
Posts to {baseURL}/crashReport — the same ingestion route the HTML editor shell
uses for unhandled runtime crashes — so all crash reports converge on one route.
The crash report to submit. contents is the raw crash log and
userInfo is any additional info the user provided.
The cloud library service endpoint base URL; /crashReport is appended.
The current editor/engine version string.
Invoked with true on a successful (2xx) upload, false otherwise.
Static ReadonlyonTriggered when a new entry in the log is added.
Static ReadonlyonTriggered when a new entry were read.
Static ReadonlyonTriggered when a new error entry in the log is added.
Error logs are also dispatched by onLogEntryAdded, this API helps to only surface error logs. Sim thread only.
Static ReadonlyonTriggered when the log is cleared.
The Debug class provides various functionality relating to debugging and logging.