Updated Logger class