added log interpolation for error log level
finished pagination logic