objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.41k stars 302 forks source link

Debug flags to log put and remove operations #554

Open tvvbbb opened 6 years ago

tvvbbb commented 6 years ago

I want to get a log file about ObjectBox log. That I can handle bug while the program is not in debug.

greenrobot commented 6 years ago

Not sure what exactly you are asking for. There are a couple of DebugFlags, which you can apply to BoxStoreBuilder - does that help?

tvvbbb commented 6 years ago

I am sorry for my poor English. I want to express is that I want a log.txt file to log database operation log.

greenrobot commented 6 years ago

Operations like put and remove? There is no such thing, sorry. Data could be downloaded via the Object Browser.

tvvbbb commented 6 years ago

That is right. I don't need to download data. I need this function while debugging findUnique() trigger exception. Now I must write log myself to wherever I put it into the database. I also want to know why not delete object or change value via Object Browser?

greenrobot commented 6 years ago

So you would want a put to log all property values? That might be produce a huge amount of logs, but, yes, it might be useful to debug some use cases.

tvvbbb commented 6 years ago

Yeah. It can upload to the server or save indicated days instead of a huge amount of log.

greenrobot commented 6 years ago

Open: we could enable this globally or on a per entity type basis.

tvvbbb commented 6 years ago

Thanks. Expect this feature.