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:
NameTypeDescription
messagesArray.<string>

Messages to log

error(message)

Log a ERROR message with a timestamp

Parameters:
NameTypeDescription
messagestring

Message to log

generateTimeStamp() → {string}

Generate a timestamp for logging

Returns:

ISO string representing the current date and time

Type: 
string

log(messages)

Log a INFO message with a timestamp

Parameters:
NameTypeDescription
messagesArray.<string>

Messages to log

logRequest(status, time, url)

Log request results

Parameters:
NameTypeDescription
statusnumber

response status

timenumber

ms between request and response

urlstring

path of the request

(async) logWelcomeMessage() → {void}

Log a welcome message in the console

Returns:
Type: 
void

toTimeAgo(date, localeopt) → {string}

Turn a date into a "time ago" string, e.g. "5 minutes ago", "2 days ago"

Parameters:
NameTypeAttributesDefaultDescription
dateDate

Date to format

localestring<optional>
i18n.locale

Locale to use for formatting

Returns:

Formatted time ago string

Type: 
string

warn(messages)

Log a WARN message with a timestamp

Parameters:
NameTypeDescription
messagesArray.<string>

Messages to log

Type Definitions

Breakpoints

Properties
NameTypeDescription
screenobject
Properties
NameTypeDescription
widthnumber
mobileboolean
xsboolean
smboolean
mdboolean
lgboolean
xlboolean
gtobject
Properties
NameTypeDescription
xsboolean
smboolean
mdboolean
lgboolean
xlboolean
ltobject
Properties
NameTypeDescription
xsboolean
smboolean
mdboolean
lgboolean
xlboolean

MetaInfo

Type:
  • Object
Properties
NameTypeAttributesDescription
titleTemplatestring<optional>
titlestring<optional>
metaArray.<metaElement><optional>
linkArray.<metaElement><optional>

metaElement

Properties
NameTypeAttributesDescription
namestring
contentstring
vmidstring<optional>