File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,7 @@ PRs to this document are welcome for any new transports!
437
437
+ [pino-loki](#pino-loki)
438
438
+ [pino-opentelemetry-transport](#pino-opentelemetry-transport)
439
439
+ [pino-pretty](#pino-pretty)
440
+ + [pino-roll](#pino-roll)
440
441
+ [pino-seq-transport](#pino-seq-transport)
441
442
+ [pino-sentry-transport](#pino-sentry-transport)
442
443
+ [pino-slack-webhook](#pino-slack-webhook)
@@ -977,6 +978,30 @@ node yourapp.js | pino-papertrail --host bar.papertrailapp.com --port 12345 --ap
977
978
978
979
for full documentation of command line switches read [README](https://github.com/ovhemert/pino-papertrail#readme)
979
980
981
+ <a id="pino-roll"></a>
982
+ ### pino-roll
983
+
984
+ ` pino- roll` is a Pino transport that automatically rolls your log files based on size or time frequency.
985
+
986
+ ` ` ` js
987
+ import { join } from ' path' ;
988
+ import pino from ' pino' ;
989
+
990
+ const transport = pino .transport ({
991
+ target: ' pino-roll' ,
992
+ options: { file: join (' logs' , ' log' ), frequency: ' daily' , mkdir: true }
993
+ });
994
+
995
+ const logger = pino (transport);
996
+ ` ` `
997
+
998
+ then you can use the logger as usual:
999
+
1000
+ ` ` ` js
1001
+ logger .info (' Hello from pino-roll!' );
1002
+ ` ` `
1003
+ For full documentation check the [README](https://github.com/mcollina/pino-roll?tab=readme-ov-file#pino-roll).
1004
+
980
1005
<a id="pino-pg"></a>
981
1006
### pino-pg
982
1007
[pino-pg](https://www.npmjs.com/package/pino-pg) stores logs into PostgreSQL.
You can’t perform that action at this time.
0 commit comments