Class DefaultLogger

java.lang.Object
com.microsoft.graph.logger.DefaultLogger
All Implemented Interfaces:
ILogger

public class DefaultLogger extends Object implements ILogger
The default logger for the service client
  • Constructor Details

    • DefaultLogger

      public DefaultLogger()
  • Method Details

    • setLoggingLevel

      public void setLoggingLevel(@Nonnull LoggerLevel level)
      Sets the logging level of this logger
      Specified by:
      setLoggingLevel in interface ILogger
      Parameters:
      level - the level to log at
    • getLoggingLevel

      @Nonnull public LoggerLevel getLoggingLevel()
      Gets the logging level of this logger
      Specified by:
      getLoggingLevel in interface ILogger
      Returns:
      the level the logger is set to
    • logDebug

      public void logDebug(@Nonnull String message)
      Logs a debug message
      Specified by:
      logDebug in interface ILogger
      Parameters:
      message - the message
    • logError

      public void logError(@Nonnull String message, @Nonnull Throwable throwable)
      Logs an error message with throwable
      Specified by:
      logError in interface ILogger
      Parameters:
      message - the message
      throwable - the throwable