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 void
Logs an unblocked Info message.
This message cannot be blocked by setting a log level.static void
Logs a Debug message.
Will only log this message if log level is set to 2 or higher.static void
Logs a Debug message.
Will only log this message if log level is set to 2 or higher.static void
Logs an Error message.static void
Logs an Error message.static void
Logs an Info message.
Will only log this message if log level is set to 1 or higher.static void
Logs an Info message.
Will only log this message if log level is set to 1 or higher.static int
logLevel()
Returns the currently set logging level (threshold)static void
longMessage
(String tag, String msg) static void
setLogLevel
(int logLevel) Sets the logging level (threshold).
Valid values:
1 - Info level
2 - Debug level
3 - Verbose levelstatic void
Logs a Verbose message.
Will only log this message if log level is set to 3.static void
Logs a Verbose message.
Will only log this message if log level is set to 3.static void
Logs a Warning message.static void
Logs 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
-