Add $messages to logger class