by default StreamHandler logs to stderr, not stdout
allow for setting the mode
use logfiles for stderr logging