> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/tr/yapilandirma/overleaf-toolkit/logging.md).

# Günlük Kaydı

şunu kullanabilirsiniz `bin/logs` servislerin günlüklerini görüntülemek için scripti.

Temel kullanım örnekleri:

```bash
# web servisinin günlüklerini görüntüle
bin/logs web

# Yardımı göster
bin/logs --help

# Birden fazla servisin günlüklerini aynı anda görüntüle
bin/logs filestore docstore web clsi

# Günlük çıktısını takip et (tail -f gibi)
bin/logs -f filestore docstore web clsi

# Yazdırılan satır sayısını sınırla (varsayılan 50)
bin/logs -n 50 web

# Tüm günlük satırlarını göster
bin/logs -n all web

# Çıktıyı bir dosyaya yönlendir
bin/logs -n all web > web.log
```

şunu kullanabilirsiniz `bin/logs` aşağıdaki servislerin günlüklerini görüntülemek için script: `clsi`, `contacts`, `docstore`, `document-updater`, `filestore`, `git-bridge`, `mongo`, `notifications`, `real-time`, `redis`, `spelling`, `tags`, `track-changes`, `web`, `web-api`, `history-v1`, `project-history`.

## Günlükleri kopyalama

Orijinal dokümanlara bakın: <https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/logging#copying-logs>

Ana `sharelatex` konteynerinden yerel bilgisayarınıza günlük dosyalarını kopyalayın:

```bash
docker cp sharelatex:/var/log/overleaf/{service-name}.log {service-name}.log
```

## Günlükleri kalıcı hale getirme

Docker konteynerleri geçicidir; bu, çalışma zamanında konteyner içinde oluşturulan dosya/dizinlerin (günlük dosyaları dahil) konteyner yeniden oluşturulursa atılacağı anlamına gelir (örneğin, çalıştırırken `bin/up`). Konteyner yeniden oluşturulmaları arasında günlük dosyalarını korumak için:

* ortam değişkenini ayarlayın `OVERLEAF_LOG_PATH` içindeki `config/overleaf.rc` Toolkit tarafından kullanılan dosyada. Bu, ana makinede günlük dizinine bind-mount edilecek dizin olmalıdır `sharelatex` konteyner.
* Bunu değiştirdikten sonra ve `bin/up -d`, günlük dosyaları ana makinede kalıcı olur ve doğrudan erişilebilir.

{% hint style="warning" %}
Bind-mount için kullanılan ana makine günlük dizininin sahibini şu kullanıcıya ayarlamalısınız: `www-data` kullanıcısı (uid=33) ve izinlerin şu olduğundan emin olun: `drwxr-xr-x` (755).

Örnek:

```bash
chown 33:33 data/overleaf/logs
chmod 755 data/overleaf/logs
```

{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/tr/yapilandirma/overleaf-toolkit/logging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
