Properly redirect stderr to output log
Support additional types