Improved plugin logging