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 Details

    • getInstance

      public static PartnerLog getInstance()
      Gets the singleton log manager instance.
      Returns:
      An instance of the log manager.
    • getLoggers

      public List<ILogger> getLoggers()
      Gets the registered loggers collection. You can add your custom loggers here.
      Returns:
      The registered loggers collection.
    • logInformation

      public void logInformation​(String message)
      Logs a piece of information.
      Specified by:
      logInformation in interface ILogger
      Parameters:
      message - The informational message.
    • logWarning

      public void logWarning​(String message)
      Logs a warning.
      Specified by:
      logWarning in interface ILogger
      Parameters:
      message - The warning message.
    • logError

      public void logError​(String message)
      Logs an error.
      Specified by:
      logError in interface ILogger
      Parameters:
      message - The error message.