adding a logger to fork command