CustomLogger Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.CustomLogger


public class CustomLogger

Deprecated as of Device client version 1.18.0, sdk now calls SLF4J directly instead and will not be replacing this class with anything

Constructor Summary

Constructor Description
CustomLogger(Class<?> clazz)

Method Summary

Modifier and Type Method and Description
void LogDebug(String message, Object[] params)
void LogDebug(String message, Throwable t, Object[] params)
void LogError(String message, Object[] params)
void LogError(Throwable exception)
void LogFatal(String message, Object[] params)

Deprecated

Since the switch from Log4j to slf4j there is no fatal log level anymore. Mapped to error level
void LogInfo(String message, Object[] params)
void LogTrace(String message, Object[] params)
void LogWarn(String message, Object[] params)
java.lang.String getMethodName()

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

CustomLogger

public CustomLogger(Class clazz)

Parameters:

clazz

Method Details

LogDebug

public void LogDebug(String message, Object[] params)

Parameters:

message
params

LogDebug

public void LogDebug(String message, Throwable t, Object[] params)

Parameters:

message
t
params

LogError

public void LogError(String message, Object[] params)

Parameters:

message
params

LogError

public void LogError(Throwable exception)

Parameters:

exception

LogFatal

public void LogFatal(String message, Object[] params)

Deprecated

Since the switch from Log4j to slf4j there is no fatal log level anymore. Mapped to error level

Parameters:

message - The message to log
params - The parameters to be put into the message

LogInfo

public void LogInfo(String message, Object[] params)

Parameters:

message
params

LogTrace

public void LogTrace(String message, Object[] params)

Parameters:

message
params

LogWarn

public void LogWarn(String message, Object[] params)

Parameters:

message
params

getMethodName

public String getMethodName()

Applies to