Skip to content
Snippets Groups Projects
Commit 91888597 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch '5-disable-logging-messages-in-pure-c-code' into 'master'

Resolve "Disable logging messages in pure C++ code"

Closes #5 

I have implemented functionality to select the log level in pure C++ code. You can now simply use ``bob::core::log_level(bob::core::INFO)`` to allow ``INFO`` messages (and above) to be printed, or ``bob::core::log_level(bob::core::DISABLE)`` to disable all C++ log output. By default, ``DEBUG`` messages are written.
This functionality should only be used in pure C++ code and is, therefore, not bound to python, which has its own logging system. The interface between bob and the ``logging`` system in Python has not changed.

I have created a new ``bob/core/_test.so`` extension, which contains test cases for the new functionality. To be able to run it using nose, the test case has been bound to Python.
I have also moved the existing C++-only test cases, which have been in the ``bob/core/_library.so`` into the ``bob/core/_test.so``. Hence, the test cases are not loaded any more when running ``import bob.core``, but only during testing.

@andre.anjos : As you have written the logging system, I assign this PR to you.

See merge request !7
parents 5af87d98 bfc1cdf8
No related branches found
No related tags found
1 merge request!7Resolve "Disable logging messages in pure C++ code"
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment