mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Adding a dummy log writer WRITER_NONE that just discards everything.
This can be handy when oen doesn't want any output but still get access to filter functionality, including rotation; and also for general testing.
This commit is contained in:
parent
f98dac9571
commit
2f2fad1f80
5 changed files with 50 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "Net.h"
|
||||
|
||||
#include "LogWriterAscii.h"
|
||||
#include "LogWriterNone.h"
|
||||
|
||||
// Structure describing a log writer type.
|
||||
struct LogWriterDefinition {
|
||||
|
@ -20,6 +21,7 @@ struct LogWriterDefinition {
|
|||
|
||||
// Static table defining all availabel log writers.
|
||||
LogWriterDefinition log_writers[] = {
|
||||
{ BifEnum::Log::WRITER_NONE, "None", 0, LogWriterNone::Instantiate },
|
||||
{ BifEnum::Log::WRITER_ASCII, "Ascii", 0, LogWriterAscii::Instantiate },
|
||||
|
||||
// End marker, don't touch.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue