Logfile log level

@dothebart, any opinion about this ? Wouldn't it be a better idea to have this somewhere common to avoid the code duplication ?