slog away

Intermediário superior (B2) informal

To keep working very hard at something for a long time, even when it is tiring or difficult

"She slogged away at her dissertation for three months before finally finishing."