CustomLogger Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. CustomLogger
- com.
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
Constructor Details
CustomLogger
public CustomLogger(Class> clazz)
Parameters:
Method Details
LogDebug
public void LogDebug(String message, Object[] params)
Parameters:
LogDebug
public void LogDebug(String message, Throwable t, Object[] params)
Parameters:
LogError
public void LogError(String message, Object[] params)
Parameters:
LogError
public void LogError(Throwable exception)
Parameters:
LogFatal
public void LogFatal(String message, Object[] params)
Deprecated
Parameters:
LogInfo
public void LogInfo(String message, Object[] params)
Parameters:
LogTrace
public void LogTrace(String message, Object[] params)
Parameters:
LogWarn
public void LogWarn(String message, Object[] params)
Parameters:
getMethodName
public String getMethodName()
Applies to
Azure SDK for Java