Re: Disable WARN message

Enrico Morelli <[email protected]> Tue, 16 May 2017 11:32:11 +0200
Newsgroups gmane.comp.java.bio.general
Organization CERM
Message-ID <[email protected]>
On Mon, 15 May 2017 18:39:09 -0700
Jose Duarte <[email protected]> wrote:

> You can avoid that one message by setting the PDB_DIR environment
> variable or system property (passing it to JVM with
> -DPDB_DIR=/some/dir). Like that you will store your cached pdb/mmcif
> files in the location you want and they will be permanent in your
> system (by using the default /tmp, they are removed after reboot).
> 

I had read for that, but the users that use my program sets a different
working directory each time, so become annoying to set the PDB_DIR more
times.

> More generally to control the logging verbosity and output location
> (stdout, log to file, etc) we use log4j2 as the logging framework.
> You can edit the default log4j2.xml file in src/main/resources to
> alter its behaviour or add your own config file. See
> https://logging.apache.org/log4j/2.x/manual/configuration.html for
> more details.

This is the better solution for me, it works fine.

Thank you very much.


> 
> Jose
> 
> 
> On Mon, May 15, 2017 at 6:18 AM, Enrico Morelli
> <[email protected]> wrote:
> 
> > Dear,
> >
> > each time I execute a program I see:
> >
> > [main] WARN
> > org.biojava.nbio.structure.align.util.UserConfiguration - Could not
> > read dir from system property PDB_DIR or environment variable
> > PDB_DIR, using system's temp directory /tmp
> >
> > When I'll release the software I wouldn't this warning, so is there
> > a way to avoid it?
> >
> > Thanks
> >
> > --
> > -------------------------------------------------------------
> >   Enrico Morelli
> >   System Administrator | Programmer | Web Developer
> >
> >   CERM - Polo Scientifico
> >   Via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY
> >   phone: +39 055 457 4269
> >   fax:   +39 055 457 4927
> > -------------------------------------------------------------
> > _______________________________________________
> > Biojava-l mailing list  -  [email protected]
> > http://mailman.open-bio.org/mailman/listinfo/biojava-l
> >


-- 
-------------------------------------------------------------
  Enrico Morelli
  System Administrator | Programmer | Web Developer

  CERM - Polo Scientifico
  Via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY
  phone: +39 055 457 4269
  fax:   +39 055 457 4927
-------------------------------------------------------------
_______________________________________________
Biojava-l mailing list  -  [email protected]
http://mailman.open-bio.org/mailman/listinfo/biojava-l