Try using Log.p(String).
On Saturday, July 3, 2021 at 11:46:20 AM UTC+3 P5music wrote:
> I am testing my CN1 app on the iOS simulator.
> I had many lines like
> System.out.println("something to be logged");
> throughout the app.
>
> I replaced all those lines with static calls to
> MyUtils.MyLog(string);
>
> that just wraps the println instruction with an if condition like
> if (logAllowed) System.out.println(param);
>
> I put logAllowed=true just inside the MyLog method.
> The log messages are printed in the CN1 simulator console
>
> but I cannot see such console messages on the iOS simulator.
>
> It is likely it does not depend on the Utils.MyLog call (or it is because
> it is static?).
>
> So is there something that can prevent the logging from appearing in the
> iOS simulator console? I do not see any message, not even the usual
> messages from CN1 or the system.
> But the Swift version of my app correctly logs as usual on the same iOS
> simulator instance.
>
> Thanks in advance
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/f47f9b6a-4e3e-47c1-bb6a-cdb39542389cn%40googlegroups.com.