Files
stf-DeviceFarmer-1/res/app/control-panes/logs/logs-controller.js
2014-05-13 12:12:52 +09:00

26 lines
458 B
JavaScript

module.exports = function LogsCtrl($scope, LogcatService) {
var filters = []
$scope.logEntries = LogcatService.entries
$scope.$watch('started', function (newValue, oldValue) {
if (newValue !== oldValue) {
if (newValue) {
$scope.control.startLogcat(filters).then(function (result) {
})
} else {
$scope.control.stopLogcat()
}
}
})
$scope.clear = function () {
LogcatService.clear()
}
}