1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Removed line counter for logs.

This commit is contained in:
Gunther Brunner 2014-05-21 17:31:19 +09:00
parent eb1baa4641
commit 97e106760f
4 changed files with 16 additions and 11 deletions

View file

@ -53,8 +53,8 @@ module.exports = function logcatTableDirective($rootScope, $timeout, LogcatServi
newRow.classList.add('log-' + data.priorityLabel) newRow.classList.add('log-' + data.priorityLabel)
newRow.insertCell(-1) //newRow.insertCell(-1)
.appendChild(document.createTextNode(LogcatService.numberOfEntries)) // .appendChild(document.createTextNode(LogcatService.numberOfEntries))
//newRow.insertCell(-1) //newRow.insertCell(-1)
// .appendChild(document.createTextNode(data.deviceLabel)) // .appendChild(document.createTextNode(data.deviceLabel))
newRow.insertCell(-1) newRow.insertCell(-1)

View file

@ -33,11 +33,11 @@
/*color: rgb(48, 57, 66);*/ /*color: rgb(48, 57, 66);*/
} }
.stf-logcat-table tr td:first-child { /*.stf-logcat-table tr td:first-child {*/
background: #f3f3f3; /*background: #f3f3f3;*/
color: #800000; /*color: #800000;*/
text-align: right; /*text-align: right;*/
} /*}*/
/** /**
Logging colors Logging colors

View file

@ -7,6 +7,13 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
service.maxEntriesBuffer = 5000 service.maxEntriesBuffer = 5000
service.numberOfEntries = 0 service.numberOfEntries = 0
service.serverFilters = [
{
tag: '',
priority: 2
}
]
service.filters = { service.filters = {
numberOfEntries: 0, numberOfEntries: 0,
entries: [ entries: [
@ -24,6 +31,7 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
}, },
set: function (value) { set: function (value) {
_filters[prop] = value ? value : null _filters[prop] = value ? value : null
service.serverFilters[0][prop] = value ? value : undefined
service.filters.filterLines() service.filters.filterLines()
} }
}) })
@ -85,7 +93,6 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
socket.on('logcat.entry', function (rawData) { socket.on('logcat.entry', function (rawData) {
service.numberOfEntries++ service.numberOfEntries++
service.entries.push(enhanceEntry(rawData)) service.entries.push(enhanceEntry(rawData))
if (typeof(service.addEntryListener) === 'function') { if (typeof(service.addEntryListener) === 'function') {

View file

@ -1,7 +1,5 @@
module.exports = function LogsCtrl($scope, LogcatService) { module.exports = function LogsCtrl($scope, LogcatService) {
var filters = []
$scope.logEntries = LogcatService.entries $scope.logEntries = LogcatService.entries
$scope.started = LogcatService.started $scope.started = LogcatService.started
@ -14,7 +12,7 @@ module.exports = function LogsCtrl($scope, LogcatService) {
if (newValue !== oldValue) { if (newValue !== oldValue) {
LogcatService.started = newValue LogcatService.started = newValue
if (newValue) { if (newValue) {
$scope.control.startLogcat(filters).then(function (result) { $scope.control.startLogcat([]).then(function (result) {
}) })
} else { } else {
$scope.control.stopLogcat() $scope.control.stopLogcat()