Re: How to turn off INFO messages

"Mustafa Cayci" <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Bernardo,

When I put the code you mentioned, I am getting the following during
runtime.

log4j:WARN No appenders could be found for logger (
com.sshtools.j2ssh.configuration.ConfigurationLoader).
log4j:WARN Please initialize the log4j system properly.

Thanks,

Mustafa

On 1/3/07, Bernardo F Costa <[email protected]> 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
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.