mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 13:53:30 +02:00
25 lines
437 B
JavaScript
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()
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
}
|