The problem though, unless I'm missing something, is in a thread, with an 
unhandled crash the code checks isCrashBound, 
(CodenameOneThread#handleException) which would be false and so would never 
call the newly installed logger (Log.e())
    public static void handleException(Throwable err) {
        if(Log.isCrashBound()) {
            Log.e(err);
            Log.sendLog();
        }
    }


On Sunday, December 4, 2016 at 5:05:22 PM UTC-8, Dave Dyer wrote:
>
>
> See this post, which includes a snippet that extracts stack traces using a 
> temporary logfile.
> You can adapt this to capture all the log events - but except for stack 
> traces I think you're
> better off using a private mechanism to log info.
>
>
> https://groups.google.com/forum/#!searchin/codenameone-discussions/logfile%7Csort:relevance/codenameone-discussions/kCbXGCqmt2o/N6vvLXtECQAJ
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/056f3090-e2d6-4f36-a5fe-483edcd717e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to