Replace error_log with system logger