Link to home
Start Free TrialLog in
Avatar of Gary4
Gary4Flag for United States of America

asked on

iOS Console Log

Hi,

Is it possible to write to the iOS console log?

How?

I find it handy to write to log files to record what is going on in an app.  And since the iphone Configuration utility can display the Console log, what better place, along with all the related system messages.
ASKER CERTIFIED SOLUTION
Avatar of ben-thompson
ben-thompson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gary4

ASKER

Hi,

Thanks.

It sure took a long time for someone to respond.

Just yesterday I learned about NSLog and and Log.d in Delphi.  Actually I knew about NSLog for a while, just not how to call it in Delphi.

Now that I have the error, it's not installing the data files I have bundled into the ipa file, I haven't a clue as to why they aren't being copied with this app when they are with two otyher apps.  The setup is virtually identical.

I suppose I should post that as another question.

Gary
Avatar of Gary4

ASKER

Log.d did it for me, as in:

{$IFDEF IOS}
procedure TChirpIceDB.Log(Buf: string);
begin
{$IFDEF DEBUG}
  FMX.Types.Log.d('Info: ' + Buf);
{$ENDIF}
end;
{$ENDIF}

The bug that it uncovered was a bug in System.StartUpCopy.pas

It wasn't using the correct case for the directory name when searching for files.

Gary