Implementing logger utility