mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
20 lines
No EOL
343 B
Text
20 lines
No EOL
343 B
Text
module LoadedScripts;
|
|
|
|
export {
|
|
redef enum Log::ID += { LOADED_SCRIPTS };
|
|
|
|
type Info: record {
|
|
depth: count &log;
|
|
name: string &log;
|
|
};
|
|
}
|
|
|
|
event bro_init()
|
|
{
|
|
Log::create_stream(LOADED_SCRIPTS, [$columns=Info]);
|
|
}
|
|
|
|
event bro_script_loaded(path: string, level: count)
|
|
{
|
|
Log::write(LOADED_SCRIPTS, [$depth=level, $name=path]);
|
|
} |