Enum Namespace

zlogging.enum.globals(*namespaces, bare=False)[source]

Generate Bro/Zeek enum namespace.

Parameters:
  • *namespaces (str) – Namespaces to be loaded.

  • bare (bool) – If True, do not load zeek namespace by default.

Return type:

dict[str, Enum]

Returns:

Global enum namespace.

Warns:

BroDeprecationWarning – If bro namespace used.

Raises:

ValueError – If namespace is not defined.

Note

For back-port compatibility, the bro namespace is an alias of the zeek namespace.