A basic logger has been implemented instead of writing messages to cout directly.