Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs->added pino-hana transport #2059

Merged
merged 1 commit into from
Oct 12, 2024
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