mirror of
https://github.com/Velocidex/velociraptor.git
synced 2026-10-12 02:09:59 +00:00
This PR revises the way the offline collector writes the logs: 1. Using the logging() plugin, the logs are written to file in during the execution of the collections from VQL. 2. By controlling the name and location of the log file from VQL we are able to better control where the log file is written and also we can delete it if required. 3. Force the copy() plugin to abort when the query ends. --------- Co-authored-by: snyk-bot <[email protected]>
16 lines
298 B
Go
16 lines
298 B
Go
package logging
|
|
|
|
// Logging levels for responder.Log()
|
|
const (
|
|
DEFAULT = "DEFAULT"
|
|
ERROR = "ERROR"
|
|
INFO = "INFO"
|
|
WARNING = "WARN"
|
|
DEBUG = "DEBUG"
|
|
WARN = "WARN"
|
|
|
|
// An alert is a special type of log message which is routed by
|
|
// the server into the alert queue.
|
|
ALERT = "ALERT"
|
|
)
|