This section explains how to log information.
There are several log levels possible, depending on the kind of message:
You should choose the log level according to the information you want to display. For example, if you do not manage to connect to your module, and catch an exception, you should log this as an error. If you are running a face detection module and detect a face, you could log each new face detection as an info, and extra information as debug.