MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / logDirectory

Method logDirectory

internal/api/handlers/management/logs.go:403–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401}
402
403func (h *Handler) logDirectory() string {
404 if h == nil {
405 return ""
406 }
407 if h.logDir != "" {
408 return h.logDir
409 }
410 return logging.ResolveLogDirectory(h.cfg)
411}
412
413func (h *Handler) collectLogFiles(dir string) ([]string, error) {
414 entries, err := os.ReadDir(dir)

Callers 5

GetLogsMethod · 0.95
DeleteLogsMethod · 0.95
GetRequestErrorLogsMethod · 0.95
GetRequestLogByIDMethod · 0.95

Calls 1

ResolveLogDirectoryFunction · 0.92

Tested by

no test coverage detected