refactor: Add UhkHidDevice wrapper that unified the USB communication (#414)

* refactor: Add UhkHidDevice wrapper that unified the USB communication

* fix(log): Hack Replace console.debug to console.log
This commit is contained in:
Róbert Kiss
2017-09-14 00:58:41 +02:00
committed by László Monda
parent 8d7269a998
commit 901a5eb5d1
7 changed files with 250 additions and 99 deletions

View File

@@ -4,6 +4,12 @@ import * as util from 'util';
import { LogService } from 'uhk-common';
// https://github.com/megahertz/electron-log/issues/44
// console.debug starting with Chromium 58 this method is a no-op on Chromium browsers.
if (console.debug) {
console.debug = console.log;
}
/**
* This service use the electron-log package to write log in file.
* The logger usable in main and renderer process.