DefaultLogger Class

  • java.lang.Object
    • com.microsoft.graph.logger.DefaultLogger

Implements

public class DefaultLogger
implements ILogger

The default logger for the service client

Constructor Summary

Constructor Description
DefaultLogger()

Method Summary

Modifier and Type Method and Description
LoggerLevel getLoggingLevel()

Gets the logging level of this logger

void logDebug(String message)

Logs a debug message

void logError(String message, Throwable throwable)

Logs an error message with throwable

void setLoggingLevel(LoggerLevel level)

Sets the logging level of this logger

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DefaultLogger

public DefaultLogger()

Method Details

getLoggingLevel

public LoggerLevel getLoggingLevel()

Gets the logging level of this logger

Returns:

the level the logger is set to

logDebug

public void logDebug(String message)

Logs a debug message

Parameters:

message - the message

logError

public void logError(String message, Throwable throwable)

Logs an error message with throwable

Parameters:

message - the message
throwable - the throwable

setLoggingLevel

public void setLoggingLevel(LoggerLevel level)

Sets the logging level of this logger

Parameters:

level - the level to log at

Applies to