Implementing best practices logging