implemented singleton pattern for the logger