linkedin / PalDB

An embeddable write-once key-value store written in Java
Apache License 2.0
939 stars 178 forks source link

How to reduce verbosity of log messages? #31

Open srp33 opened 8 years ago

srp33 commented 8 years ago

I am really liking your data store. The log output is a little verbose by default. Is there a way to configure it to only display error messages?

wanggaohang commented 8 years ago

realy? what kind of error messages? I don't have many paldb log messages in my situation.

srp33 commented 8 years ago

It print information about the sizes and quantities of keys, etc. to standard error. I'd like to be able to turn that off.

djkingCanada commented 6 years ago

I'd second this, it seems to logging a info level by default. Would very much like to turn down the noise.

djkingCanada commented 6 years ago

Logger l = Logger.getLogger(""); l.setLevel(Level.SEVERE) Fixed it for me, I'm not using the default java logger anywhere else in the system, so messing with the root logger was not an issue.

djkingCanada commented 6 years ago

Logger l = Logger.getLogger("com.linkedin.paldb"); l.setLevel(Level.SEVERE) also does the trick and won't mess up other logging.