DM: verbose and quiet logging
authormtklein <mtklein@chromium.org>
Tue, 8 Mar 2016 17:01:39 +0000 (09:01 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 8 Mar 2016 17:01:39 +0000 (09:01 -0800)
commitc41fd9251dad3e2e2797436a4ccfaf0490914fe0
tree6576e31bee0a129e1d090183ebb4e05c9931de29
parentc80bf74bccc32da1b528e667bc4970069d2a6652
DM: verbose and quiet logging

If you pass no flags, output is pretty much unchanged from today: calls to
info() go to the console, calls to vlog() are ignored.

If you pass --verbose and -w dir, all calls to info(), vlog() and all of stderr
are redirected to dir/verbose.log.  info() calls also go to the console,
unless you pass --quiet, in which case nothing goes to the console at all.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1771143002

Review URL: https://codereview.chromium.org/1771143002
dm/DM.cpp