SDMLogger class

Deprecated. since 3.0, Use com.sap.mobile.lib.supportability.Logger ISDMLogger implementation.

Syntax

public class SDMLogger extends ISDMLogger, ISDMPersistable

Members

All members of SDMLogger, including inherited members.

Variables
Modifier and Type Variable Description
public static int e2eStep  
public static int passportTraceLevel  
Constructors
Modifier and Type Constructor Description
public SDMLogger() Constructs a new SDMLogger, an ISDMLogger implementation.
Methods
Modifier and Type Method Description
public boolean canLog() Implementer should override this method!
public void cleanUp(final int) Deletes all entries weaker than the threshold priority.
public void d(final String, final String) Sends a DEBUG log message.
public void d(final String, final String, final Throwable) Sends a DEBUG log message and logs the exception.
public void d(final String, final String, final String) Sends a DEBUG log message.
public void d(final String, final String, final Throwable, final String) Sends a DEBUG log message and logs the exception.
public void e(final String, final String) Sends an ERROR log message.
public void e(final String, final String, final Throwable) Sends an ERROR log message and logs the exception.
public void e(final String, final String, final String) Sends an ERROR log message.
public void e(final String, final String, final Throwable, final String) Sends an ERROR log message and logs the exception.
public Enumeration< LogEntry > getLogElements()  
public Vector< LogEntry > getLogElements(final int) Get the log elements above (and including) the threshold.
public Vector< LogEntry > getLogElementsByCorrelationId(final String)  
public Vector< LogEntry > getLogElementsByPID(final long)  
public Vector< LogEntry > getLogElementsByTag(final String)  
public Vector< LogEntry > getLogElementsByTimeStamp(final long, final long)  
public final int getLogLevel() Returns the log level.
public void i(final String, final String) Sends an INFO log message.
public void i(final String, final String, final Throwable) Sends a INFO log message and logs the exception.
public void i(final String, final String, final String) Sends an INFO log message.
public void i(final String, final String, final Throwable, final String) Sends a INFO log message and logs the exception.
public void log(final int, final String, final String, final Throwable, String) Logs a log message.
public void logFullLocation(boolean) Setting to control log full location (class-path and method name).
public boolean logsFullLocation() To get the setting which controls log output should contain full location (class and method name) or not.
public boolean logsToAndroid() To get the setting which controls log output to Android log.
public void logToAndroid(final boolean) Setting to control log output to Android log.
public void p(final String, final String) Sends a PERFORMANCE log message.
public void p(final String, final String, final String) Sends a PERFORMANCE log message.
public void read(BufferedReader)  
public void setHeaderData(final String, final String, final String, final String, final String, final String, final String, final String, final String) Sets the log header fields.
public void setLogLevel(final int) Set the log level.
public void terminate() Clears collected log data.
public synchronized String toString() Get log data.
public void v(final String, final String) Sends a VERBOSE log message.
public void v(final String, final String, final Throwable) Sends a VERBOSE log message and logs the exception.
public void v(final String, final String, final String) Sends a VERBOSE log message.
public void v(final String, final String, final Throwable, final String) Sends a VERBOSE log message and logs the exception.
public void w(final String, final Throwable) Sends a WARN log message and logs the exception.
public void w(final String, final String, final Throwable) Sends a WARN log message and logs the exception.
public void w(final String, final String) Sends a WARN log message.
public void w(final String, final Throwable, final String) Sends a WARN log message and logs the exception.
public void w(final String, final String, final String) Sends a WARN log message.
public void w(final String, final String, final Throwable, final String) Sends a WARN log message and logs the exception.
public void write(BufferedWriter)  
public void wtf(final String, final Throwable) Use com.sap.mobile.lib.supportability.ILogger#w(String, Throwable) What a Terrible Failure: Reports an exception that should never happen.
public void wtf(final String, final String) Use com.sap.mobile.lib.supportability.ILogger#w(String, String) What a Terrible Failure: Reports a condition that should never happen.
public void wtf(final String, final String, final Throwable) Use com.sap.mobile.lib.supportability.ILogger#w(String, String, Throwable) What a Terrible Failure: Reports an exception that should never happen.
public void wtf(final String, final Throwable, final String) Use com.sap.mobile.lib.supportability.ILogger#w(String, Throwable, String) What a Terrible Failure: Reports an exception that should never happen.
public void wtf(final String, final String, final String) Use com.sap.mobile.lib.supportability.ILogger#w(String, String, String) What a Terrible Failure: Reports a condition that should never happen.
public void wtf(final String, final String, final Throwable, final String) Use com.sap.mobile.lib.supportability.ILogger#w(String, String, Throwable, String) What a Terrible Failure: Reports an exception that should never happen.
Inherited members from ISDMLogger
Modifier and Type Member Description
public static final int ASSERT Log level ASSERT.
public static final int DEBUG Log level DEBUG.
public static final int ERROR Log level ERROR.
public static final int FATAL Log level FATAL.
public static final int INFO Log level INFO.
public static final int PERFORMANCE Log level PERFORMANCE.
public static final int VERBOSE Log level VERBOSE.
public static final int WARN Log level WARN.