Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25808] Android: Improve log quality

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, log
ReporterMichael Gangolf
AssigneeUnknown
Created2018-02-24T13:53:17.000+0000
Updated2018-03-04T09:44:55.000+0000

Description

Following up on TIMOB-24311, it would be good to continue to remove all non Ti Log from the Android console. Testproject
var win = Ti.UI.createWindow({
	backgroundColor: '#fff'
});

var txt = "";
var counter = 0;
setInterval(function() {
	txt += "test " + counter + "\n";
	counter++;
	console.log(txt);
}, 500);

win.open();
Currently there is still some output like {noformat} [INFO] : Adreno: QUALCOMM build : a5b4970, If5818605d9 [INFO] : Adreno: Build Date : 10/12/16 [INFO] : Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04 [INFO] : Adreno: Local Branch : N24D [INFO] : Adreno: Remote Branch : [INFO] : Adreno: Remote Branch : [INFO] : Adreno: Reconstruct Branch : [INFO] : OpenGLRenderer: Initialized EGL, version 1.4 [DEBUG] : OpenGLRenderer: Swap behavior 1 [TRACE] : updating tiapp metadata with Appcelerator Platform... [TRACE] : Uploaded tiapp metadata with Appcelerator Platform! {noformat} In the new PR I removed the non Ti checks that where used for multiline Ti-Logs. Since I'm not sure where exactly they appear and tested it with two live apps the output was better than before and only showing logs the developer wants to see. If there are other parts that will need the previous non-ti-regex it would be good to invest if they can be changed (e.g. adding a prefix to filter them out)

Comments

  1. Michael Gangolf 2018-02-24

    PR: https://github.com/appcelerator/titanium_mobile/pull/9884
  2. Sharif AbuDarda 2018-02-24

    Thanks for the ticket. Our engineers will look into it.
  3. Michael Gangolf 2018-03-04

    Found a problem: the whole external module log is not visible now since they can have custom tags! I'll check that

JSON Source