Files
Mike Cohenandsnyk-bot c83c3335c5 Extend the logging() plugin to include pre logs. (#4326)
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]>
2025-07-01 18:03:28 +10:00

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"
)