+ new setting "dns.querylog_memsize"

* set 1000 entries by default (not 5000)
This commit is contained in:
Simon Zolin
2019-11-08 12:31:50 +03:00
parent 31ffae7717
commit 7e45c2fc24
6 changed files with 15 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ import (
type DiskConfig struct {
Enabled bool
Interval uint32
MemSize uint32
}
// QueryLog - main interface
@@ -32,6 +33,7 @@ type Config struct {
Enabled bool
BaseDir string // directory where log file is stored
Interval uint32 // interval to rotate logs (in days)
MemSize uint32 // number of entries kept in memory before they are flushed to disk
// Called when the configuration is changed by HTTP request
ConfigModified func()