Improved operation logging