Enable logging in Chrome browser

Is there a way to enable the Chrome browser logging via Action Script?

How is it enabled via the command line? Registry entry? Something else?