console
ModuleThese functions are provided to maintain convenience with the console.log() function present in many JavaScript instances.
Properties
This module has no properties.
Methods
console.log(...values) -> None
Log a value to the Hammerspoon Log Window
Accepts any number of values, which are space-separated in the log output. Non-string
values (objects, arrays, errors, etc.) are formatted the way Node's util.inspect would
render them.
console.log(...values) -> None
| Name | Type | Description |
|---|---|---|
| ...values | any[] | A value to log |
console.error(...values) -> None
Log an error to the Hammerspoon Log Window
Accepts any number of values; see log(_:) for formatting details.
console.error(...values) -> None
| Name | Type | Description |
|---|---|---|
| ...values | any[] | A value to log |
console.warn(...values) -> None
Log a warning to the Hammerspoon Log WIndow
Accepts any number of values; see log(_:) for formatting details.
console.warn(...values) -> None
| Name | Type | Description |
|---|---|---|
| ...values | any[] | A value to log |
console.info(...values) -> None
Log an informational message to the Hammerspoon Log Window
Accepts any number of values; see log(_:) for formatting details.
console.info(...values) -> None
| Name | Type | Description |
|---|---|---|
| ...values | any[] | A value to log |
console.debug(...values) -> None
Log a debug message to the Hammerspoon Log Window
Accepts any number of values; see log(_:) for formatting details.
console.debug(...values) -> None
| Name | Type | Description |
|---|---|---|
| ...values | any[] | A value to log |