Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Настроить срок хранения логов #7

Open
dima117 opened this issue Sep 18, 2015 · 2 comments
Open

Настроить срок хранения логов #7

dima117 opened this issue Sep 18, 2015 · 2 comments
Assignees

Comments

@dima117
Copy link
Owner

dima117 commented Sep 18, 2015

Чтобы старые логи автоматически удалялись через заданное количество дней и не накапливались.

@dima117 dima117 self-assigned this Sep 18, 2015
@om2804
Copy link

om2804 commented Aug 12, 2017

Логирование выполняется через NLog. Данная фича решается настройкой конфига https://github.com/nlog/nlog/wiki/File-Target

@dima117
Copy link
Owner Author

dima117 commented Aug 14, 2017

Да, это и имелось в виду. Речь шла о настройке конфига по умолчанию, который копируется на компьютер при установке.

Кстати, в новой версии (на платформе .NET Core) вместо NLog используется Serilog, там по умолчанию хранится 31 день.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants