Added support for --log (--stdout and --stderr options have been removed)