Members
(constant) VERSIONS :Array.<{tag: string, start: (Date|null), end: (Date|null)}>
List of application versions with their active periods.
Type:
- Array.<{tag: string, start: (Date|null), end: (Date|null)}>
Methods
debug(messages)
Log a DEBUG message with a timestamp
Parameters:
| Name | Type | Description |
|---|---|---|
messages | Array.<string> | Messages to log |
- Source
error(message)
Log a ERROR message with a timestamp
Parameters:
| Name | Type | Description |
|---|---|---|
message | string | Message to log |
- Source
generateTimeStamp() → {string}
Generate a timestamp for logging
- Source
Returns:
ISO string representing the current date and time
- Type:
- string
log(messages)
Log a INFO message with a timestamp
Parameters:
| Name | Type | Description |
|---|---|---|
messages | Array.<string> | Messages to log |
- Source
logRequest(status, time, url)
Log request results
Parameters:
| Name | Type | Description |
|---|---|---|
status | number | response status |
time | number | ms between request and response |
url | string | path of the request |
- Source
(async) logWelcomeMessage() → {void}
Log a welcome message in the console
- Source
Returns:
- Type:
- void
toTimeAgo(date, localeopt) → {string}
Turn a date into a "time ago" string, e.g. "5 minutes ago", "2 days ago"
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
date | Date | Date to format | ||
locale | string | <optional> | i18n.locale | Locale to use for formatting |
- Source
Returns:
Formatted time ago string
- Type:
- string
warn(messages)
Log a WARN message with a timestamp
Parameters:
| Name | Type | Description |
|---|---|---|
messages | Array.<string> | Messages to log |
- Source
Type Definitions
Breakpoints
Properties| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
screen | object | Properties
|
- Source
MetaInfo
Type:
Properties- Object
| Name | Type | Attributes | Description |
|---|---|---|---|
titleTemplate | string | <optional> | |
title | string | <optional> | |
meta | Array.<metaElement> | <optional> | |
link | Array.<metaElement> | <optional> |
- Source
metaElement
Properties| Name | Type | Attributes | Description |
|---|---|---|---|
name | string | ||
content | string | ||
vmid | string | <optional> |
- Source