Refactor to P1LapchartLogger class