# pm2, pino ve pino-pretty ile bunjs projesinin raporlarini yonetmek

![](https://i.imgur.com/SNQeKMo.png)

* [pm2](https://www.notion.so/128782176ba9458e86044d1babae04ae) projenin raporlari dosyaya yonlendirerek saklar
* `stderr` ve `stdout` streamlarini alir ve `error` ve `log` olmak uzere iki dosyada yedekler
* [pino](https://www.notion.so/98710976d04948058fd9f2f353a0e0e0) ile uygulamanizda dosyaya yazma islemi yapmayin, [pm2](https://www.notion.so/128782176ba9458e86044d1babae04ae) sizin icin yapacaktir
  * `pino.destination` isimli bir satiriniz varsa bunu kaldirin
* [pino-pretty](https://www.notion.so/e5c1c952b36a423fad655494e427522a) modulunu projenizin icerisine dahil etmeyin (zaten onerilmez)
* Projenizi [BunJs](https://www.notion.so/d0bd2a1699fb46f1a2b57ef5b6076a5f) ile calistirip, `pipe` ile [pino-pretty](https://www.notion.so/e5c1c952b36a423fad655494e427522a) yonlendirmesi yapin
* Isterseniz sadece zaman, `-I` komutu ile sadece `level`,`time` ve `msg` bilgilerini gorun

> 💡 Merak etmeyin bu islemde sadece size gozuken degisecektir ve dosya raporlari etkilenmez

```shell
# bun src/index.ts | pino-pretty
bun src/index.ts | pino-pretty -I level,time
```

## Hata Durumunda Bakman Gereken Alanlar

[link\_to\_page](https://github.com/yemreak/blog/blob/main/docs/tr/blog/programming/0e833ade-2056-40a3-abf9-854c4ff75f00/README.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yemreak.com/arsiv/programming/pm2-pino-ve-pino-pretty-ile-bunjs-projesinin-raporlarini-yonetmek.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
