You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/transports.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ there are additional transports written by
51
51
*[Pusher](#pusher-transport)
52
52
*[SimpleDB](#simpledb-transport)
53
53
*[Slack](#slack-transport)
54
+
*[SQLite3](#sqlite3-transport)
54
55
*[SSE with KOA 2](#sse-transport-with-koa-2)
55
56
*[Sumo Logic](#sumo-logic-transport)
56
57
*[Winlog2 Transport](#winlog2-transport)
@@ -693,6 +694,22 @@ This transport takes the following options:
693
694
* __unfurlMedia__ - Enables or disables [media unfurling.](https://api.slack.com/docs/message-link-unfurling) (Default: false)
694
695
* __mrkdwn__ - Enables or disables [`mrkdwn` formatting](https://api.slack.com/messaging/composing/formatting#basics) within attachments or layout blocks (Default: false)
695
696
697
+
### SQLite3 Transport
698
+
699
+
The [winston-better-sqlite3][40] transport uses [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3).
700
+
701
+
```js
702
+
constwbs=require('winston-better-sqlite3');
703
+
logger.add(newwbs({
704
+
705
+
// path to the sqlite3 database file on the disk
706
+
db:'<name of sqlite3 database file>',
707
+
708
+
// A list of params to log
709
+
params: ['level', 'message']
710
+
});
711
+
```
712
+
696
713
### Sumo Logic Transport
697
714
[winston-sumologic-transport][32] is a transport for Sumo Logic
698
715
@@ -864,3 +881,4 @@ That's why we say it's a logger for just about everything
0 commit comments