Skip to content

Commit

Permalink
Add MySQL/MariaDB transport (#708)
Browse files Browse the repository at this point in the history
* Add MySQL/MariaDB transport

* Update docs/transports.md

Co-Authored-By: David Mark Clements <david.mark.clements@gmail.com>

* Update docs/transports.md

Co-Authored-By: David Mark Clements <david.mark.clements@gmail.com>
  • Loading branch information
2 people authored and mcollina committed Nov 8, 2019
1 parent 588fb11 commit 044dbd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ PR's to this document are welcome for any new transports!
+ [pino-datadog](#pino-datadog)
+ [pino-elasticsearch](#pino-elasticsearch)
+ [pino-mq](#pino-mq)
+ [pino-mysql](#pino-mysql)
+ [pino-papertrail](#pino-papertrail)
+ [pino-redis](#pino-redis)
+ [pino-sentry](#pino-sentry)
Expand Down Expand Up @@ -222,6 +223,25 @@ node yourapp.js | pino-papertrail --host bar.papertrailapp.com --port 12345 --ap

for full documentation of command line switches read [readme](https://github.com/ovhemert/pino-papertrail#readme)

<a id="pino-mysql"></a>
### pino-mysql

[pino-mysql][pino-mysql] loads pino logs into [MySQL][MySQL] and [MariaDB][MariaDB].

```sh
$ node app.js | pino-mysql -c db-configuration.json
```

`pino-mysql` can extract and save log fields into corresponding database field
and/or save the entire log stream as a [JSON Data Type][JSONDT].

For full documentation and command line switches read the [readme][pino-mysql].

[pino-mysql]: https://www.npmjs.com/package/pino-mysql
[MySQL]: https://www.mysql.com/
[MariaDB]: https://mariadb.org/
[JSONDT]: https://dev.mysql.com/doc/refman/8.0/en/json.html

<a id="pino-redis"></a>
### pino-redis

Expand Down

0 comments on commit 044dbd0

Please sign in to comment.