[TIMOB-25808] Android: Improve log quality
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | android, log |
Reporter | Michael Gangolf |
Assignee | Unknown |
Created | 2018-02-24T13:53:17.000+0000 |
Updated | 2018-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)
PR: https://github.com/appcelerator/titanium_mobile/pull/9884
Thanks for the ticket. Our engineers will look into it.
Found a problem: the whole external module log is not visible now since they can have custom tags! I'll check that