yinzerflow 0.2.2 → 0.2.3
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/docs/logging.md +14 -0
- package/package.json +1 -1
package/docs/logging.md
CHANGED
|
@@ -38,6 +38,20 @@ const server = new YinzerFlow({
|
|
|
38
38
|
await server.listen();
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
Users can also use the built in logger as well by importing the log directly from yinzerflow
|
|
42
|
+
```typescript
|
|
43
|
+
import { YinzerFlow, log } from 'yinzerflow';
|
|
44
|
+
|
|
45
|
+
const server = new YinzerFlow({
|
|
46
|
+
logLevel: 'info',
|
|
47
|
+
networkLogs: true
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
log.info('The server is starting')
|
|
51
|
+
|
|
52
|
+
await server.listen();
|
|
53
|
+
```
|
|
54
|
+
|
|
41
55
|
### Custom Logger Example
|
|
42
56
|
```typescript
|
|
43
57
|
import { YinzerFlow } from 'yinzerflow';
|