Bitcoin Forum
May 14, 2024, 12:38:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simple question about org.bitcoinj.crypto.MnemonicCode and Java  (Read 53 times)
Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
January 31, 2022, 12:22:17 PM
Last edit: January 31, 2022, 12:40:06 PM by Sanka555
 #1

remove message from console org.bitcoinj.crypto.MnemonicCode

when I use this library then after each processing a get message in my console Eclipse

Quote
2022-01-31 14:11:58.433  INFO 6312 --- [      Thread-23] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 4.372 s
2022-01-31 14:11:58.461  INFO 6312 --- [      Thread-11] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.736 s
2022-01-31 14:11:58.475  INFO 6312 --- [      Thread-15] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 4.655 s
2022-01-31 14:11:58.511  INFO 6312 --- [      Thread-18] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 241.2 ms
2022-01-31 14:11:58.532  INFO 6312 --- [      Thread-14] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.187 s
2022-01-31 14:11:58.567  INFO 6312 --- [      Thread-21] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.120 s
2022-01-31 14:11:58.602  INFO 6312 --- [      Thread-10] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 490.2 ms
2022-01-31 14:11:58.681  INFO 6312 --- [       Thread-5] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.255 s
2022-01-31 14:11:58.701  INFO 6312 --- [      Thread-25] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.559 s
2022-01-31 14:11:58.725  INFO 6312 --- [      Thread-16] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 366.7 ms
2022-01-31 14:11:58.783  INFO 6312 --- [      Thread-14] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 240.2 ms
2022-01-31 14:11:58.967  INFO 6312 --- [      Thread-10] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 319.0 ms
2022-01-31 14:11:58.996  INFO 6312 --- [      Thread-18] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 317.4 ms
2022-01-31 14:11:59.014  INFO 6312 --- [      Thread-27] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 595.0 ms
2022-01-31 14:11:59.105  INFO 6312 --- [      Thread-16] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 366.3 ms
2022-01-31 14:11:59.118  INFO 6312 --- [      Thread-19] org.bitcoinj.crypto.MnemonicCode         : PBKDF2 took 3.635 s
2022-01-31 14:11:59.258  INFO 6312 --- [      Thread-12] org.bitcoinj.cr

I do not need it

how can i disable this thing so it doesn't write anything to my console?
thank you very much in advance  Smiley
1715647113
Hero Member
*
Offline Offline

Posts: 1715647113

View Profile Personal Message (Offline)

Ignore
1715647113
Reply with quote  #2

1715647113
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 31, 2022, 02:01:54 PM
Merited by Sanka555 (5)
 #2

You question is not related to BTC but to Java programming...
Please read manual at: https://www.slf4j.org/ to see how to define logging levels.
What you want is to change default logging level for class org.bitcoinj.crypto.MnemonicCode to let's say ERROR. That way INFO messages will not be logged.

http://webcode.lemme.at/2018/12/04/update-slf4j-log-level-programmatically/


Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
January 31, 2022, 02:26:28 PM
 #3

You question is not related to BTC but to Java programming...
Please read manual at: https://www.slf4j.org/ to see how to define logging levels.
What you want is to change default logging level for class org.bitcoinj.crypto.MnemonicCode to let's say ERROR. That way INFO messages will not be logged.

http://webcode.lemme.at/2018/12/04/update-slf4j-log-level-programmatically/

Thank you. I figured out  which direction to look)


logging.level.org.bitcoinj.crypto.MnemonicCode=OFF

in application.properties  helped me  Smiley
(=ERROR   for some reason it doesn't work)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!