Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
  */
 package org.apache.felix.scrplugin;


This interface supplies the API for providing feedback to the user from SCR descriptor generation process using whatever means is implemented. There should be no big surprises here.
 
 public interface Log {

    

Returns:
true if the debug error level is enabled
 
     boolean isDebugEnabled();


    
Send a message to the user in the debug error level.

Parameters:
content
 
     void debugString content );


    
Send a message (and accompanying exception) to the user in the debug error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
error
 
     void debugString contentThrowable error );


    
Send an exception to the user in the debug error level.
The stack trace for this exception will be output when this error level is enabled.

Parameters:
error
 
     void debugThrowable error );


    

Returns:
true if the info error level is enabled
 
     boolean isInfoEnabled();


    
Send a message to the user in the info error level.

Parameters:
content
 
     void infoString content );


    
Send a message (and accompanying exception) to the user in the info error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
error
 
     void infoString contentThrowable error );


    
Send an exception to the user in the info error level.
The stack trace for this exception will be output when this error level is enabled.

Parameters:
error
 
     void infoThrowable error );


    

Returns:
true if the warn error level is enabled
    boolean isWarnEnabled();


    
Send a message to the user in the warn error level.

Parameters:
content
    void warnString content );

    
Send a message (and accompanying exception) to the user in the warn error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
location The location at which the error occurred
lineNumber The line number at which the error occurred
    void warnString contentString locationint lineNumber );

    
Send a message (and accompanying exception) to the user in the warn error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
location The location at which the error occurred
lineNumber The line number at which the error occurred
columnNumber The column number at which the error occurred
    void warnString contentString locationint lineNumberint columnNumber );


    
Send a message (and accompanying exception) to the user in the warn error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
error
    void warnString contentThrowable error );


    
Send an exception to the user in the warn error level.
The stack trace for this exception will be output when this error level is enabled.

Parameters:
error
    void warnThrowable error );


    

Returns:
true if the error error level is enabled
    boolean isErrorEnabled();


    
Send a message to the user in the error error level.

Parameters:
content
    void errorString content );


    
Send a message (and accompanying exception) to the user in the error error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
location The location at which the error occurred
lineNumber The line number at which the error occurred
    void errorString contentString locationint lineNumber );

    
Send a message (and accompanying exception) to the user in the error error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
location The location at which the error occurred
lineNumber The line number at which the error occurred
columnNumber The column number at which the error occurred
    void errorString contentString locationint lineNumberint columnNumber );
    

    
Send a message (and accompanying exception) to the user in the error error level.
The error's stacktrace will be output when this error level is enabled.

Parameters:
content
error
    void errorString contentThrowable error );


    
Send an exception to the user in the error error level.
The stack trace for this exception will be output when this error level is enabled.

Parameters:
error
    void errorThrowable error );
New to GrepCode? Check out our FAQ X