Skip to content

Commit

Permalink
docs->added pino-hana transport (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiImGiovi authored Oct 12, 2024
1 parent 7cff45a commit d32fd55
Showing 1 changed file with 25 additions and 0 deletions.
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

0 comments on commit d32fd55

Please # to comment.