Re: How to turn off INFO messages
Bernardo F Costa <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
A happy new year for all of us !!
You got to put something like this in your code:
import org.apache.log4j.PropertyConfigurator;
PropertyConfigurator.configure("j2ssh.log4j.properties");
This will not completely turn off, but will redirect
the log messages to a file. See how to do it at log4j
tutorials. If you do not configure log4j it will use a
default configuration: log at console with the most
verbose mode (DEBUG). If you log just warn, error or
fatal levels it will print a lot less messages. This
attached configuration file is set to log in warn
level, which means no info messages.
It's better copy this message to the list, so other
people may see it.
--- Mustafa Cayci <[email protected]> escreveu:
> Hi Bernardo,
>
> I wish you a wonderful New Year.
>
> Do you know how to turn off INFO messages that J2SSH
> prints?
>
> Thanks,
>
> Mustafa
>
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sshtools-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sshtools-users
j2ssh.log4j.properties
(application/octet-stream, 284 B) - not displayed