Search Unity

Reading Unity logs from running device (without using Zero Iteration)

Discussion in 'AR' started by FrozenKiwi, Mar 26, 2019.

  1. FrozenKiwi

    FrozenKiwi

    Joined:
    Mar 7, 2019
    Posts:
    13
    A simple question: I'd like to read the logs from an app running on the Magic Leap, either after it's run (ie from a testers device) or live (but again, without requiring connection to the Zero Iteration app).

    I see the new build 2019.1 can read the Android logs directly in the editor - does that mean we could view the output of Unity logs there too from Magic Leap?

    Is there any other method for gathering/viewing logs?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    I haven't got a working Magic Leap device yet (the one they sent me was a dud — sending it back tomorrow). So I'm not sure if this works, but: have you tried the standard
    adb logcat
    command that works with other Android devices?
     
    FrozenKiwi likes this.
  3. FrozenKiwi

    FrozenKiwi

    Joined:
    Mar 7, 2019
    Posts:
    13
    Thanks Joe - you put me on the right track:

    mlsdk\v0.19.0\tools\mldb>mldb log

    will stream logs from the device, including Unity exception logs & traces.

    There are a load of other interesting commands in mldb, including a few for crashdumps which it would be great to get a bit of documentation around!
     
    Stephen-Hodgson and JoeStrout like this.