Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ PRs to this document are welcome for any new transports!
+ [pino-telegram-webhook](#pino-telegram-webhook)
+ [pino-yc-transport](#pino-yc-transport)
+ [@macfja/pino-fingers-crossed](#macfja-pino-fingers-crossed)
+ [pino-hana](#pino-hana)

### Legacy

Expand Down Expand Up @@ -1142,6 +1143,30 @@ logger.info('Will NOT appear')
logger.info({ [enable]: false }, 'Will appear immedialty')
logger.info('Will NOT appear')
```
<a id="pino-hana"></a>
### pino-hana
[pino-hana](https://github.com/HiImGiovi/pino-hana) is a Pino v7+ transport that save pino logs to a SAP HANA database.
```js
const pino = require('pino')
const logger = pino({
transport: {
target: 'pino-hana',
options: {
connectionOptions: {
host: <hana db host>,
port: <hana db port>,
user: <hana db user>,
password: <hana db password>,
},
schema: <schema of the table in which you want to save the logs>,
table: <table in which you want to save the logs>,
},
},
})

logger.info('hi') // this log will be saved into SAP HANA
```
For more detailed information about its usage please check the official [documentation](https://github.com/HiImGiovi/pino-hana#readme).

<a id="communication-between-pino-and-transport"></a>
## Communication between Pino and Transports
Expand Down