zeek/scripts/base/frameworks/logging/writers/none.zeek
2019-04-11 21:12:40 -05:00

17 lines
442 B
Text

##! Interface for the None log writer. This writer is mainly for debugging.
module LogNone;
export {
## If true, output debugging output that can be useful for unit
## testing the logging framework.
const debug = F &redef;
}
function default_rotation_postprocessor_func(info: Log::RotationInfo) : bool
{
return T;
}
redef Log::default_rotation_postprocessors += { [Log::WRITER_NONE] = default_rotation_postprocessor_func };