All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.sbt.compiler.api.CompilerLogger Maven / Gradle / Ivy

/*
 * Copyright 2013-2015 Grzegorz Slowikowski (gslowikowski at gmail dot com)
 *
 * Licensed 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 com.google.code.sbt.compiler.api;

/**
 * Logger providing compilation feedback.
 *
 * @author Grzegorz Slowikowski
 */
public interface CompilerLogger
{
    /**
     * Returns true if debug log level is enabled.
     * 
     * @return true if debug log level is enabled
     */
    boolean isDebugEnabled();

    /**
     * Sends a message in debug log level.
     *
     * @param content debug message
     */
    void debug( String content );

    /**
     * Sends a throwable in the debug log level.
     * 
* The stack trace for this throwable will be output. * * @param throwable debug throwable */ void debug( Throwable throwable ); /** * Returns true if info log level is enabled. * * @return true if info log level is enabled */ boolean isInfoEnabled(); /** * Sends a message in info log level. * * @param content info message */ void info( String content ); /** * Returns true if warn log level is enabled. * * @return true if warn log level is enabled */ boolean isWarnEnabled(); /** * Sends a message in warn log level. * * @param content warning message */ void warn( String content ); /** * Returns true if error log level is enabled. * * @return true if error log level is enabled */ boolean isErrorEnabled(); /** * Sends a message in the error log level. * * @param content error message */ void error( String content ); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy