Move code of PlLogger out of the core, keep logging class, but not its