docs(runtime-logs): implement runtime log management features
Добавлены новые возможности для работы с файловыми логами Docker-сервисов: - Эндпоинты для получения списка логов и хвоста лог-файла. - Очистка лог-файлов с возможностью выбора режима (truncate или delete) и запись в аудит очистки. - Обновлена документация и конфигурация для поддержки новых функций. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package runtimelogs
|
||||
|
||||
const (
|
||||
// MaxCleanupBytes is the maximum file size eligible for sync cleanup.
|
||||
MaxCleanupBytes = 512 * 1024 * 1024
|
||||
// DefaultTailLines is the default number of lines returned from Tail.
|
||||
DefaultTailLines = 200
|
||||
// MaxTailLines caps the lines query parameter.
|
||||
MaxTailLines = 2000
|
||||
// MaxTailBytes caps tail read size.
|
||||
MaxTailBytes = 256 * 1024
|
||||
// MaxGrepLen caps optional grep filter length.
|
||||
MaxGrepLen = 128
|
||||
// ServiceNameAll is the only process role that may access runtime logs FS.
|
||||
ServiceNameAll = "evobgp-all"
|
||||
)
|
||||
Reference in New Issue
Block a user