I needed to do the same thing and this is the solution I found: Enable logging from the command line using ...
stackoverflow.com