Package com.nagra.otvaa.sdk
Class OtvAaLog
java.lang.Object
com.nagra.otvaa.sdk.OtvAaLog
Class to control logs produced by the OpenTV Analytics Agent SDK
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs an unblocked Info message.
This message cannot be blocked by setting a log level.static voidLogs a Debug message.
Will only log this message if log level is set to 2 or higher.static voidLogs a Debug message.
Will only log this message if log level is set to 2 or higher.static voidLogs an Error message.static voidLogs an Error message.static voidLogs an Info message.
Will only log this message if log level is set to 1 or higher.static voidLogs an Info message.
Will only log this message if log level is set to 1 or higher.static intlogLevel()Returns the currently set logging level (threshold)static voidlongMessage(String tag, String msg) static voidsetLogLevel(int logLevel) Sets the logging level (threshold).
Valid values:
1 - Info level
2 - Debug level
3 - Verbose levelstatic voidLogs a Verbose message.
Will only log this message if log level is set to 3.static voidLogs a Verbose message.
Will only log this message if log level is set to 3.static voidLogs a Warning message.static voidLogs a Warning message.
-
Field Details
-
ENTER
- See Also:
-
LEAVE
- See Also:
-
ENTER_AND_LEAVE
- See Also:
-
ENTER_WITH
- See Also:
-
LEAVE_WITH
- See Also:
-
ENTER_AND_LEAVE_WITH
- See Also:
-
LOG_LEVEL_VERBOSE
public static final int LOG_LEVEL_VERBOSEVerbose log level- See Also:
-
LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_DEBUGDebug log level- See Also:
-
LOG_LEVEL_INFO
public static final int LOG_LEVEL_INFOInfo log level- See Also:
-
-
Method Details
-
v
Logs a Verbose message.
Will only log this message if log level is set to 3.- Parameters:
tag- String of the tagmsg- String of the message to output
-
v
Logs a Verbose message.
Will only log this message if log level is set to 3.- Parameters:
tag- String of the tagmsg- String of the message to outputtr- the RuntimeException throw object
-
d
Logs a Debug message.
Will only log this message if log level is set to 2 or higher.- Parameters:
tag- String of the tagmsg- String of the message to output
-
d
Logs a Debug message.
Will only log this message if log level is set to 2 or higher.- Parameters:
tag- String of the tagmsg- String of the message to outputtr- the RuntimeException throw object
-
i
Logs an Info message.
Will only log this message if log level is set to 1 or higher.- Parameters:
tag- String of the tagmsg- String of the message to output
-
i
Logs an Info message.
Will only log this message if log level is set to 1 or higher.- Parameters:
tag- String of the tagmsg- String of the message to outputtr- the RuntimeException throw object
-
w
Logs a Warning message.- Parameters:
tag- String of the tagmsg- String of the message to output
-
w
Logs a Warning message.- Parameters:
tag- String of the tagmsg- String of the message to outputtr- the RuntimeException throw object
-
e
Logs an Error message.- Parameters:
tag- String of the tagmsg- String of the message to output
-
e
Logs an Error message.- Parameters:
tag- String of the tagmsg- String of the message to outputtr- the RuntimeException throw object
-
always
Logs an unblocked Info message.
This message cannot be blocked by setting a log level.- Parameters:
tag- String of the tagmsg- String of the message to output
-
setLogLevel
public static void setLogLevel(int logLevel) Sets the logging level (threshold).
Valid values:
1 - Info level
2 - Debug level
3 - Verbose level- Parameters:
logLevel- the threshold integer
-
logLevel
public static int logLevel()Returns the currently set logging level (threshold)- Returns:
- the current threshold log level integer
-
longMessage
-