Add logger output logic depends of inPipe