Updated parser to use Logger class