2

How to disable all logs from being written in release mode including NSLog based logs as well.

Mobile app peneteration tools are basically able to find out NSLog being used.

In native iOS it is easy to do but in xamarin there is no way to disable this.

I couldn't find any compiler flag for disabling this.If I could find a compiler flag for this then I can input that in mtouch and fix the issue.

Any help is welcome

2
  • 2
    There is no compiler flag to disable output. This is up to your code not to output to the "log" in Release mode builds if that is your desire. You can use Debug.WriteLine as System.Console.WriteLine. Commented May 3, 2017 at 1:03
  • 1
    @SushiHangover - I am not writing any logs but xamarin produces logs by itself and pentesting tools shows and NSlog is being used ...strange though Commented May 3, 2017 at 6:03

1 Answer 1

1

Debug.writeline is meant to be used in development build

I am 100% certain that there is debug flag part of your project We saved this conversation. You'll see it soon in the Conversations tab in Skype for Business and in the Conversation History folder in Outlook.

Right click on the PCL project choose options choose compiler In the configurations choose the configuration that you are using and see what you have got in Define symbols

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the steps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.