Started on an PdfLogger class that can store internal states