Logging functions: level parameter is not optional

This parameter cannot be optional, as the following parameter is mandatory.

Also completed the corresponding documentation.
Merge pull request #2440 from vlakoff/develop

Logging functions: level parameter is not optional