Fix bug in logging interface
Fix bug in logging interface

The bug meant that the log level could not be correctly set if there are
at least two logging domains other than the root domain.

depp/sglib,depp/sglib