mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00

* robin/topic/writer-info: Extending the log writer DoInit() API. Reworking log writer API to make it easier to pass additional information to a writer's initialization method. Conflicts: src/logging/WriterBackend.cc src/logging/WriterBackend.h src/logging/WriterFrontend.cc
17 lines
443 B
Text
17 lines
443 B
Text
##! Interface for the None log writer. Thiis 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 };
|
|
|