Implementing basic logger