Updating logger to annotated logger to get PIDs