Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to turn off Sugar logging #375

Closed
maarek opened this issue Aug 20, 2015 · 10 comments
Closed

How to turn off Sugar logging #375

maarek opened this issue Aug 20, 2015 · 10 comments

Comments

@maarek
Copy link

maarek commented Aug 20, 2015

Even though I have commented out the following, I still see model saved in the log. I tried with setting it to false but that still didn't work.

<!--<meta-data android:name="QUERY_LOG" android:value="false" />-->
@Siddounet
Copy link

Hi,
QUERY_LOG Logs the generated Select queries.
So, when you save, logs are activated, I didn't see any attribute to disable it, & I prefer it disable too.
QUERY_LOG is only for SELECT... :(

@jfabrix101
Copy link

Inside the save method there is log command

Log.i("Sugar", object.getClass().getSimpleName() + " saved : " + id);

so the log info are always shown (at INFO level).

Should be possible to add some "LogLevel" suport, i.e. through configuration choose if show or not this (and other) kind of log ?

@maarek
Copy link
Author

maarek commented Aug 23, 2015

Yes, I have created a fork where I have commented out all logging for now. In the next couple of days I will wrap it all with the ability to adjust the log level and create a pull request. Seems like quite a few PRs are sitting there though.

@sushantkhanna
Copy link

Was this resolved?

@sibelius
Copy link
Contributor

use <meta-data android:name="QUERY_LOG" android:value="false" /> to disable logs

@heitorcolangelo
Copy link

Is not working, it is still logging.

@sibelius
Copy link
Contributor

R u using master?

@heitorcolangelo
Copy link

What do you mean by using master?

@sibelius
Copy link
Contributor

Which version of sugar r u using? Follow README to use master version (latest)

@heitorcolangelo
Copy link

No, I haven't notice this point.
I'll try and let you know if it works.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants