Namespace: Log

Log

Log a message. Will also store the LastError to local storage as 'lastError'

Source:

Methods


<static> error( [message] [, method] [, title])

Log an error

Parameters:
Name Type Argument Default Description
message string <optional>
<nullable>
'unknown'

override label

method string <optional>
<nullable>
'unknownMethod'

override action

title string <optional>
<nullable>
null

a title for the error

Source:

<static> exception(exception [, message] [, fatal] [, title])

Log an exception

Parameters:
Name Type Argument Default Description
exception Object

the exception

message string <optional>
<nullable>
null

the error message

fatal boolean <optional>
true

true if fatal

title string <optional>
<nullable>
'An exception was caught'
  • a title for the error
Source: