-
public class HyprMXLogProvide different type of logging methods. This class captures all the log messages before logging messages.
-
-
Method Summary
Modifier and Type Method Description final static Unitv(String message)Sends a android.util.Log.VERBOSE log message if HyprMXProperties.debug is true. final static Unitd(String message)Sends a android.util.Log.DEBUG log message if HyprMXProperties.debug is true. final static Unitd(String tag, String message)Sends a android.util.Log.DEBUG log message if HyprMXProperties.debug is true. final static Uniti(String tag, String message)Sends a android.util.Log.INFO log message. final static Uniti(String message)Sends a android.util.Log.INFO log message. final Uniti(String message, Throwable throwable)Sends a android.util.Log.INFO log message. final static Unitw(String message)Sends a android.util.Log.WARN log message. final static Unitw(String tag, String message)Sends a android.util.Log.WARN log message. final Unitw(String message, Throwable throwable)Sends a android.util.Log.WARN log message. final static Unite(String message)Sends a android.util.Log.ERROR log message. final static Unite(String tag, String message)Sends a android.util.Log.ERROR log message. final static Unite(Throwable throwable)Sends a android.util.Log.ERROR log message. final static Unite(String message, Throwable throwable)Sends a android.util.Log.ERROR log message. final UnitresetLoggedMessages()Clear stored logged messages. final UnitlongDebugLog(String tag, String message)Helper method to log long debug messages. final static UnitenableDebugLogs(Boolean enabled)Enables logging of debug messages. -
-
Method Detail
-
v
final static Unit v(String message)
Sends a android.util.Log.VERBOSE log message if HyprMXProperties.debug is true.
- Parameters:
message- The message you would like logged.
-
d
final static Unit d(String message)
Sends a android.util.Log.DEBUG log message if HyprMXProperties.debug is true.
- Parameters:
message- The message you would like logged.
-
d
final static Unit d(String tag, String message)
Sends a android.util.Log.DEBUG log message if HyprMXProperties.debug is true.
- Parameters:
message- The message you would like logged.
-
i
final static Unit i(String tag, String message)
Sends a android.util.Log.INFO log message.
- Parameters:
message- The message you would like logged.
-
i
final static Unit i(String message)
Sends a android.util.Log.INFO log message.
- Parameters:
message- The message you would like logged.
-
i
final Unit i(String message, Throwable throwable)
Sends a android.util.Log.INFO log message.
- Parameters:
message- The message you would like logged.throwable- An exception to log
-
w
final static Unit w(String message)
Sends a android.util.Log.WARN log message.
- Parameters:
message- The message you would like logged.
-
w
final static Unit w(String tag, String message)
Sends a android.util.Log.WARN log message.
- Parameters:
tag- Tag to include with the logmessage- The message you would like logged.
-
w
final Unit w(String message, Throwable throwable)
Sends a android.util.Log.WARN log message.
- Parameters:
message- The message you would like logged.throwable- An exception to log
-
e
final static Unit e(String message)
Sends a android.util.Log.ERROR log message.
- Parameters:
message- The message you would like logged.
-
e
final static Unit e(String tag, String message)
Sends a android.util.Log.ERROR log message.
- Parameters:
message- The message you would like logged.
-
e
final static Unit e(Throwable throwable)
Sends a android.util.Log.ERROR log message.
- Parameters:
throwable- An exception to log.
-
e
final static Unit e(String message, Throwable throwable)
Sends a android.util.Log.ERROR log message.
- Parameters:
message- The message you would like logged.throwable- An exception to log
-
resetLoggedMessages
@Synchronized() final Unit resetLoggedMessages()
Clear stored logged messages.
-
longDebugLog
final Unit longDebugLog(String tag, String message)
Helper method to log long debug messages.
- Parameters:
message- The message you would like logged.
-
enableDebugLogs
final static Unit enableDebugLogs(Boolean enabled)
Enables logging of debug messages. This is disabled in release builds by default.
-
-
-
-