What about mozlog.StreamHandler()? Does it work? As I can see other code in mozbase make use of mozlog.FileHandler(), so I assume it should also be possible for the StreamHandler.