Fixed compilation of get_attribute method of loggers.