简体   繁体   English

如何在嵌套js中使用papertrail(发送日志)?

[英]how to use papertrail (send logs) in nest js?

is there any way to use papertrail in nestjs application?有没有办法在nestjs应用程序中使用papertrail I am added loggers like this https://docs.nestjs.com/techniques/logger我添加了这样的记录器https://docs.nestjs.com/techniques/logger

Now I want to send this logs to papertrail .. is there any way to send?现在我想将此日志发送到papertrail .. 有什么方法可以发送吗?

I got the example of nodejs.我得到了nodejs的例子。 but I didn't find any example of nestjs但我没有找到任何nestjs的例子

You could send it to SQL or NoSQL.您可以将其发送至 SQL 或 NoSQL。 Eventually, you want to store a log record.最终,您想要存储日志记录。

Or you could save it on your local server by creating your own log file.或者,您可以通过创建自己的日志文件将其保存在本地服务器上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM