question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to turn off logging?

See original GitHub issue

Your Environment

  • Plugin version: 2.3.6 (all versions)

  • Platform: Android

  • OS version: Android 9

  • Device manufacturer and model: Samsung

  • Running in Simulator: no (real device)

  • Cordova version (cordova -v): 7.1.0

  • Cordova platform version (cordova platform ls): Android 7.1.0

Context

Package com.marianhello.logging logs every event to SQL DB. For half a year of using the application (with plugin cordova-plugin-background-geolocation) - the log specifically had logback.db size of 11 GB. There is some way to turn off logging? for example, to limit writing to DB (days, count of records), or even better to select a given logLevel…

Expected Behavior

Possibility to set logging level or complete shutdown.

Actual Behavior

Write everything and increase db

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
davidpadychcommented, Jan 15, 2020

background-geolocation-android/src/main/java/com/marianhello/logging/LoggerManager.java // line 41

root.setLevel(Level.TRACE); // root.setLevel(Level.OFF);

0reactions
stale[bot]commented, Jan 24, 2021

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn’t be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it’s important. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - How to disable logging on the standard error stream?
I found a solution for this: logger = logging.getLogger('my-logger') logger.propagate = False # now if you use logger it will not log to...
Read more >
How to disable logging from imported modules in Python?
To disable logging from imported modules in Python we need to use the getLogger() function. The getLogger() function. The name of the logger...
Read more >
Enabling and disabling logging - IBM
Under Request Metrics Destination, select the Standard Logs check box to enable the logging feature. To disable the logging , clear the Standard...
Read more >
Disable Logging Events to the Windows Application Log
Under General, clear the Enable Event Logging to Windows Application Log check box. Choose the Save button, and then choose the OK button....
Read more >
Python Examples of logging.disable - ProgramCreek.com
The following are 30 code examples of logging.disable(). You can vote up the ones you like or vote down the ones you don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found