Improved daemon logging