[Biojava-l] Disable WARN message

Jose Duarte jose.duarte at rcsb.org
Tue May 16 01:39:09 UTC 2017


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).

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.

Jose


On Mon, May 15, 2017 at 6:18 AM, Enrico Morelli <morelli at cerm.unifi.it>
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  -  Biojava-l at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biojava-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biojava-l/attachments/20170515/d8274fa8/attachment.html>


More information about the Biojava-l mailing list