Karamata theorem for regularly log-periodic functions