For a reporting plugin I have a logging routine which writes data to a plugin-specific console.
I'd like to adapt so it dumps to a different location (stdout, a log file, etc) if running from itestcli in headless mode, and looking for a pointer on where to get that data from. My assumption is that within onReportStart I can leverage IContext to do it, but am not clear on the proper casting, etc.
Any pointers on how I can get that mode so I can branch accordingly?
Thanks,
-Bill