Solution was found here
https://stackoverflow.com/a/42826227/930835
Il giorno martedì 6 luglio 2021 alle 04:04:26 UTC+2 Shai Almog ha scritto:

> Release should still print logging.
> I don't see any change in the native code with the latest maven release so 
> I don't think that's possible.
> On Monday, July 5, 2021 at 6:38:13 PM UTC+3 P5music wrote:
>
>> No, it does not work as well.
>> I would like to know if it is possible that I altered something in my 
>> project inadvertently, like changing from Debug to Release somewhere.
>> It is something that happens only with the CN1 app, opening the snapshot 
>> project as created by maven.
>> Is it also possible that the maven script has a bug in it, so its last 
>> version that runs now, causes absent logging, or set the project to Release?
>> Regards
>> Il giorno lunedì 5 luglio 2021 alle 15:21:03 UTC+2 [email protected] ha 
>> scritto:
>>
>>> Just in case, maybe try Log.p("Message ", Log.DEBUG); too. 
>>> It should be the same as suggested by Shai, but it never hurts to try. 
>>>
>>> On Sunday, July 4, 2021 at 10:05:44 PM UTC-4 Shai Almog wrote:
>>>
>>>> If nothing appears then this isn't us. It's an environment problem, not 
>>>> sure how to debug that.
>>>>
>>>> On Sunday, July 4, 2021 at 10:43:51 AM UTC+3 P5music wrote:
>>>>
>>>>> It does not work. Nothing changes.
>>>>> Nothing is displayed in the console, not even the other stuff from the 
>>>>> system or CN1.
>>>>> The process is attached. I also detached and attached again.
>>>>> Regards
>>>>>
>>>>> Il giorno domenica 4 luglio 2021 alle 03:57:31 UTC+2 Shai Almog ha 
>>>>> scritto:
>>>>>
>>>>>> 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/8b63e991-c860-4741-bf1f-205af671fff1n%40googlegroups.com.

Reply via email to