Implementation to set global logging level.