Coverage Report - net.admin4j.log.LogManager
 
Classes in this File Line Coverage Branch Coverage Complexity
LogManager
N/A
N/A
1
LogManager$LogIncrementType
100%
1/1
N/A
1
 
 1  
 /*
 2  
  * This software is licensed under the Apache License, Version 2.0
 3  
  * (the "License") agreement; you may not use this file except in compliance with
 4  
  * the License.  You may obtain a copy of the License at
 5  
  * 
 6  
  *      http://www.apache.org/licenses/LICENSE-2.0
 7  
  * 
 8  
  * Unless required by applicable law or agreed to in writing, software
 9  
  * distributed under the License is distributed on an "AS IS" BASIS,
 10  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 11  
  * See the License for the specific language governing permissions and
 12  
  * limitations under the License.
 13  
  */
 14  
 package net.admin4j.log;
 15  
 
 16  
 import java.util.List;
 17  
 
 18  
 import net.admin4j.vo.LoggerVO;
 19  
 
 20  
 /**
 21  
  * Log Managers are handle interactions with a specific logging software
 22  
  * product including listing available loggers and changing log levels at runtime.
 23  
  * @author D. Ashmore
 24  
  *
 25  
  */
 26  
 public interface LogManager {
 27  
     
 28  12
     public enum LogIncrementType {SHOW_MORE, SHOW_LESS, CLEAR};
 29  
     
 30  
     /**
 31  
      * Provides a list of available loggers pertaining to a specific logging
 32  
      * software product.
 33  
      * @return Log list
 34  
      */
 35  
     public List<LoggerVO> findLoggers();
 36  
     
 37  
     /**
 38  
      * Performs a runtime logger change returning the new logger state.
 39  
      * @param requestedLoggerName
 40  
      * @param type
 41  
      * @return
 42  
      */
 43  
     public String performLogLevelChange(String requestedLoggerName, LogIncrementType logIncrementType);
 44  
     
 45  
     /**
 46  
      * Returns a label used to describe the Logging software product.
 47  
      * @return
 48  
      */
 49  
     public String getLoggerSoftwareProductName();
 50  
     
 51  
     /**
 52  
      *  Will install a Log appender that will track any exceptions that are logged via the ExceptionTracker.
 53  
      *  @see net.admin4j.exception.ExceptionTracker
 54  
      */
 55  
     public void installExceptionTrackingLogAppender();
 56  
 
 57  
 }