#1 2014-11-06 15:30:21

Naoki
Member
Registered: 2014-11-06
Posts: 4

Logging on Android

Hi! I'm a just newbie to mORMot Framework.
I found the logging system of this framework great. And I would like to use this logging on an Android application developed with XE5.
Is it available on Android? or are there any workaround to use logging on Android? Even if some features of would be lost by workarounds, it might be ok :-)

Offline

#2 2014-11-06 15:50:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Logging on Android

You can use our SynCrossPlatform client for Android.
Then you can use TSQLRest.LogToRemoteServer() and Log() methods to remotely log to our LogView tool, which will run on your desktop.
See http://synopse.info/files/html/api-1.18 … l#TSQLREST

Offline

#3 2014-11-07 02:26:48

Naoki
Member
Registered: 2014-11-06
Posts: 4

Re: Logging on Android

Thank you, ab.
But for the application we are developing now, flat file logs would be better(maybe i can do it by using TSQLRest.LogToFile), and the functions offered by TSynLog like log rotations, compressing files, and Enter method would be especially helpful.
Are these any way to use these functions on Android?

Last edited by Naoki (2014-11-07 02:27:21)

Offline

#4 2014-11-07 06:26:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Logging on Android

You want to log on the Android device storage?

Offline

#5 2014-11-07 11:21:53

Naoki
Member
Registered: 2014-11-06
Posts: 4

Re: Logging on Android

Yes, I would like to log on the Android device storage.
I suppose that the application would run mostly in the offline situation, so  I want to control the lifetime of the application logs to monitor what happened on the device later. I think I might often lose the application logs unexpectedly, depending on the Android's Logs.
Am I correct? I'm also a newbie to Android...

Last edited by Naoki (2014-11-07 11:23:05)

Offline

#6 2014-11-07 12:10:57

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Logging on Android

There are logging classes in Android http://developer.android.com/reference/ … l/Log.html
But they are quite limited.

Offline

#7 2014-11-07 22:30:45

Naoki
Member
Registered: 2014-11-06
Posts: 4

Re: Logging on Android

Yes, for our application, the logging classes in Android is not enough.
So I'm searching other ways to record app logs, for example using flat files or using Sqlite...
And I found TSynlog's features (log rotations, compressing files, and Enter method) would be the best solution! if it worked on Android device...

Offline

Board footer

Powered by FluxBB