Search Unity

Debug.Log in android

Discussion in 'VR' started by amelnyk_, Oct 11, 2018.

  1. amelnyk_

    amelnyk_

    Joined:
    Nov 2, 2017
    Posts:
    2
    Dear all,
    Were Unity-made application puts the log files when it runs under Android?
    I use both:
    (1) Debug.Log("user message");
    (2) using (StreamWriter msglog = File.AppendText(msglogfilepath)) { msglog.Write((DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds + "user message \r\n"); }
    And I can't found both, log and user files.

    I develop in Unity for Gear Occulus and Samsung S8.
    Any clues?
    Kind regards, Artem.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    You get that debug output on Android via the adb logcat command (on your desktop computer).
     
    gjf likes this.