Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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.