Add a 'directlog' option to allow logging to an exact file

By default libjdwp will, if you pass logfile=/path/to/a/file log to
the file /path/to/a/file.<current-pid>. This is usually fine but it
can make it difficult to control the logging programatically. This
change adds a 'directlog=(y|n)' option to libjdwp. If 'directlog=y'
logs will be printed to the exact file specified in 'logfile'. This
can be used to log directly to a file-descriptor (through
/proc/self/fd) among other things.

Test: Manual art invocations.
Change-Id: I434041dc81faaecef85ae2b2bd99d63c16501bee
3 files changed