uneeq-js 3.0.16-preview.6 → 3.0.16-preview.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,6 +8,10 @@ This project is a web npm package used to connect to Uneeq's Digital Human Orche
8
8
  #### Start:
9
9
  `npm start`
10
10
 
11
+ #### Local testing
12
+
13
+ See [./example/README.md](./example/README.md)
14
+
11
15
  #### Lint
12
16
  Eslint is used in this project and can be run with `npm run lint`. You may find it easier to install VSCode plugin `eslint` to see lint errors in editor. Additionally adding the following option to the plugin settings will fix errors on save:
13
17
 
@@ -15,7 +19,23 @@ Eslint is used in this project and can be run with `npm run lint`. You may find
15
19
  "source.fixAll.eslint": true
16
20
  }`
17
21
 
22
+ #### Logging
23
+ A custom logger has been implemented using `pino` library. You can use it to log strings with values.
24
+ `Logger.info('Logging just a string')`
25
+ `Logger.info('Logging with value', { some: 'thing' })`
26
+ `Logger.info('Logging with multiple values', { some: 'thing' }, { another: 'thing' })`
27
+
28
+ There are multiple log levels which are defined in `src/types/LogLevels.ts`:
29
+ `Logger.debug('a debug log')`
30
+ `Logger.info('an info log')`
31
+ `Logger.warn('a warning log')`
32
+ `Logger.error('an error log')`
33
+
34
+ Logs will only be displayed if they are at or above the log level specified when initializing the Uneeq class via UneeqConfig. The default log level is 'info'.
35
+
36
+ Log messages will be prefixed with the string 'UneeQ: ' so that uneeq-js logs can be differentiated from client logs easily.
37
+
18
38
 
19
39
  ## Notes
20
40
  #### onnxruntime-web
21
- onnxruntime-web only works on version 1.15.1 at this time. Upgrading this package will likely break VAD funtionality.
41
+ onnxruntime-web only works on version 1.15.1 at this time. Upgrading this package will likely break VAD funtionality.