![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.azure.sdk.build.tool.util.logging.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-sdk-build-tool-maven-plugin Show documentation
Show all versions of azure-sdk-build-tool-maven-plugin Show documentation
A tool that makes working with the Azure SDK for Java more productive.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.sdk.build.tool.util.logging;
import com.microsoft.azure.sdk.build.tool.mojo.AzureSdkMojo;
/**
* A simple logger interface to support enable logging for the Azure SDK build tool.
*/
public interface Logger {
/**
* Returns the singleton instance of {@link Logger}.
* @return The singleton instance of {@link Logger}.
*/
static Logger getInstance() {
if (AzureSdkMojo.getMojo() == null) {
return ConsoleLogger.getInstance();
} else {
return MojoLogger.getInstance();
}
}
/**
* Logs message at info level.
* @param msg The message to log.
*/
void info(String msg);
/**
* Returns true if logging at warning level is enabled.
* @return {@code true} if logging at warning level is enabled.
*/
boolean isWarnEnabled();
/**
* Logs the message at warning level.
* @param msg The message to log.
*/
void warn(String msg);
/**
* Returns true if logging at error level is enabled.
* @return {@code true} if logging at error level is enabled.
*/
boolean isErrorEnabled();
/**
* Logs the message at error level.
* @param msg The message to log.
*/
void error(String msg);
/**
* Returns true if logging at verbose level is enabled.
* @return {@code true} if logging at verbose level is enabled.
*/
boolean isVerboseEnabled();
/**
* Logs the message at verbose level.
* @param msg The message to log.
*/
void verbose(String msg);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy