adjusted rex_logger for psr3