Some changes in the logger class. (separation of log and err, add new options to config the logger, and a new macro))