mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 20:53:24 +02:00
Logging to the console.
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
module.exports = function LogsCtrl($scope) {
|
||||
|
||||
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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user