Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question disable logcat logs

Discussion in 'Editor & General Support' started by Rafaat_Ashour, May 17, 2023.

  1. Rafaat_Ashour

    Rafaat_Ashour

    Joined:
    Sep 25, 2020
    Posts:
    50
    hello all,

    i know this duplicated post, but i can't find my answer or get it work as i want.
    i wanna disable all logs for my project not even unity default logs, like project name and engine version.

    i try many method but most of them only disable script debug.log message. and some other class from other api still got logs appear.

    is there a way we could disable all logs, i open many games and app and try see if they have logs, most of them show nothing.

    unity should have a disable option for this.

    i try this follow this post Strip release build from all Debug.Log calls - Unity Forum but it didn't work for me too.

    does any one know how to disable it ?
    am working on unity 2021.3.25f lts
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,394
    I don't think you can remove the native calls made when initializing the app.
    The earliest you can hook in is Awake, where you can disable the logger.

    You can try to disable everything in player settings - others (at the bottom). Let me know if that fixes it
     
  3. Rafaat_Ashour

    Rafaat_Ashour

    Joined:
    Sep 25, 2020
    Posts:
    50
    thank for your reply, i try disable it on awake didn't help, and also all my stack trace setting set to none too
     
    DevDunk likes this.
  4. Rafaat_Ashour

    Rafaat_Ashour

    Joined:
    Sep 25, 2020
    Posts:
    50
    anyone ??