Coverage Report - pt.digitalis.dif.utils.logging.DIFLogger
 
Classes in this File Line Coverage Branch Coverage Complexity
DIFLogger
0%
0/4
N/A
1
 
 1  0
 /**
 2  
  * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. Distribuicao e Gestao de Informatica, Lda.
 3  
  * Estrada de Paco de Arcos num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999
 4  
  * http://www.digitalis.pt
 5  
  */
 6  
 package pt.digitalis.dif.utils.logging;
 7  
 
 8  
 import pt.digitalis.dif.startup.DIFStartupConfiguration;
 9  
 import pt.digitalis.log.ILogWrapper;
 10  
 import pt.digitalis.log.Logger;
 11  
 
 12  
 /**
 13  
  * Logger proxy for DiF.
 14  
  * 
 15  
  * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a>
 16  
  * @author Rodrigo Gon�alves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a>
 17  
  * @created Sep 24, 2007
 18  
  */
 19  0
 public class DIFLogger {
 20  
 
 21  
     /**
 22  
      * Gets the logger object.
 23  
      * 
 24  
      * @return the logger
 25  
      */
 26  
     static public ILogWrapper getLogger()
 27  
     {
 28  
         // Force the default logger to the desired log level
 29  0
         Logger.getLogger().setLevel(DIFStartupConfiguration.getLogLevel());
 30  
 
 31  0
         return Logger.getLogger("DIF", DIFStartupConfiguration.getLogLevel());
 32  
     }
 33  
 }