Class PartnerLog
java.lang.Object
com.microsoft.store.partnercenter.logging.PartnerLog
- All Implemented Interfaces:
ILogger
public class PartnerLog extends Object implements ILogger
Use this class for logging messages. This class supports pluggable loggers.
-
Method Summary
Modifier and Type Method Description static PartnerLoggetInstance()Gets the singleton log manager instance.List<ILogger>getLoggers()Gets the registered loggers collection.voidlogError(String message)Logs an error.voidlogInformation(String message)Logs a piece of information.voidlogWarning(String message)Logs a warning.
-
Method Details
-
getInstance
Gets the singleton log manager instance.- Returns:
- An instance of the log manager.
-
getLoggers
Gets the registered loggers collection. You can add your custom loggers here.- Returns:
- The registered loggers collection.
-
logInformation
Logs a piece of information.- Specified by:
logInformationin interfaceILogger- Parameters:
message- The informational message.
-
logWarning
Logs a warning.- Specified by:
logWarningin interfaceILogger- Parameters:
message- The warning message.
-
logError
Logs an error.
-