No, according to The Swedish Authority for Privacy Protection's (IMY), consent is not required for electronic mileage logs, as long as the data collection is limited and relevant for the purpose.
Dina Mil follows these recommendations by:
Only storing start and end addresses – not exact routes or live location data.
Minimizing data collection to what is necessary to comply with tax legislation.
Not storing location data unnecessarily – only for as long as necessary.
Complying with GDPR with privacy protection as standard.
Read more about consent related to mileage logs at The Swedish Authority for Privacy Protection's (IMY) here.