Skip to content

Commit f7c7c2a

Browse files
automatic update
1 parent 3e14d1e commit f7c7c2a

3 files changed

Lines changed: 18 additions & 21 deletions

File tree

docs/reference/js/Class.VelopackApp.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,24 @@ VelopackLocator provides some utility functions for locating the current app imp
203203

204204
***
205205

206+
### setLogger()
207+
208+
> **setLogger**(`callback`): `VelopackApp`
209+
210+
Set a callback to receive log messages from VelopackApp.
211+
212+
#### Parameters
213+
214+
| Parameter | Type |
215+
| ------ | ------ |
216+
| `callback` | (`loglevel`, `msg`) => `void` |
217+
218+
#### Returns
219+
220+
`VelopackApp`
221+
222+
***
223+
206224
### build()
207225

208226
> `static` **build**(): `VelopackApp`

docs/reference/js/Function.setVelopackLogger.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/reference/js/index.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,3 @@ sidebar_position: 0
1818
| [UpdateInfo](TypeAlias.UpdateInfo.md) | Holds information about the current version and pending updates, such as how many there are, and access to release notes. |
1919
| [UpdateOptions](TypeAlias.UpdateOptions.md) | Options to customise the behaviour of UpdateManager. |
2020
| [VelopackLocatorConfig](TypeAlias.VelopackLocatorConfig.md) | VelopackLocator provides some utility functions for locating the current app important paths (eg. path to packages, update binary, and so forth). |
21-
22-
## Functions
23-
24-
| Function | Description |
25-
| ------ | ------ |
26-
| [setVelopackLogger](Function.setVelopackLogger.md) | Set a custom logger callback to receive log messages from Velopack. The default behavior is to log to console.log. |

0 commit comments

Comments
 (0)