Why do you redeclare this class and don't use it from mozlog? Is it because of the max_level_length property? I wonder if that should really be adjusted in mozbase to allow the max length to be specified as parameter.