Skip to content

Commit

Permalink
feat(logging): Support new logging
Browse files Browse the repository at this point in the history
  • Loading branch information
corykim committed Oct 31, 2018
1 parent db8d6a6 commit f69fffd
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"das-keyboard-q": "2.4.x"
},
"dependencies": {
"daskeyboard-applet": "~2.7.1",
"daskeyboard-applet": "~2.7.6",
"mocha": "^5.2.0",
"os-utils": "^0.0.14",
"request": "^2.88.0"
Expand Down
3 changes: 3 additions & 0 deletions q-cpu-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ const colors = ['#00FF00', '#00FF00', '#00FF00', '#00FF00', '#FFFF00', '#FFFF00'
'#FF0000', '#FF0000', '#FF0000'
];

const logger = q.logger;


class CpuUsage extends q.DesktopApp {
constructor() {
super();
// run every 3000 ms
this.pollingInterval = 3000;
logger.info("CPU Usage Meter ready to go!");
}

// call this function every pollingInterval
Expand Down
Loading

0 comments on commit f69fffd

Please sign in to comment.