Files
stf-DeviceFarmer/res/app/control-panes/logs/logs-controller.js
2014-05-12 19:28:56 +09:00

25 lines
437 B
JavaScript

module.exports = function LogsCtrl($scope, socket) {
var filters = []
socket.scoped($scope).on('logcat.entry', function (entry) {
console.log(entry)
})
$scope.$watch('started', function (newValue, oldValue) {
if (newValue !== oldValue) {
if (newValue) {
$scope.control.startLogcat(filters).then(function (result) {
})
} else {
$scope.control.stopLogcat()
}
}
});
}