[Bro] Help with getting PLUGIN_DBG_LOG to work
Robin Sommer
robin at icir.org
Sat Oct 31 09:01:30 PDT 2015
I suppose you have seen this?
https://www.bro.org/sphinx-git/devel/plugins.html#debugging-plugins
A plugin that's using it is this one:
https://github.com/rsmmr/hilti/tree/master/bro/src (that's a bit more
of a complex one though :-)
Robin
On Fri, Oct 30, 2015 at 19:19 +0000, you wrote:
> I’ve looked at all of the plugins that come standard with Bro, and I haven’t really found PLUGIN_DBG_LOG being used. So it is hard to find a good working example of how to print out values for debugging purposes.
>
> As an example program, I’ve used the init program to create a plugin TestSpace::testplugin. I’ve set “plugin::TestSpace_testplugin::Plugin TestPlugin;” inside the “TestSpace_testplugin” namespace in the Plugin.h.
>
> I then call PLUGIN_DBG_LOG(TestPlugin, “…”); inside my constructor of my TestPlugin.cc file, and I’m not seeing anything in the log directory.
>
> Anyone every try to use this, and have something I can look at?
>
> Jason Close
> Information Security Analyst
> OU Information Technology
> Office: 405.325.8661 Cell: 405.421.1096
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
--
Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin
More information about the Bro
mailing list