Re: How to turn off INFO messages

east of java <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
// To set the level high thus turning off the INFO try this:

        Jdk14Logger mylog2 = (Jdk14Logger)
LogFactory.getLog("com.sshtools");
        mylog2.getLogger().setLevel(java.util.logging.Level.SEVERE);






Bernardo F Costa wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-How-to-turn-off-INFO-messages-tf2915415.html#a9581175
Sent from the SSHtools - User mailing list archive at Nabble.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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.