public class OCastLog
This class logs OCast messages.
Modifier and Type | Class and Description |
---|---|
static class |
OCastLog.Companion
The companion object.
|
Modifier and Type | Field and Description |
---|---|
static OCastLog.Companion |
Companion
The companion object.
|
Constructor and Description |
---|
OCastLog()
This class logs OCast messages.
|
Modifier and Type | Method and Description |
---|---|
static void |
debug(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a debug message.
|
static void |
error(java.lang.Throwable throwable,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an error message.
|
static OCastLog.Level |
getLevel()
The current OCast log level.
|
static void |
info(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an info message.
|
static void |
setLevel(OCastLog.Level p)
The current OCast log level.
|
public static OCastLog.Companion Companion
The companion object.
@NotNull public static OCastLog.Level getLevel()
The current OCast log level.
Default value is Level.OFF
.
public static void setLevel(@NotNull OCastLog.Level p)
The current OCast log level.
Default value is Level.OFF
.
@JvmStatic public static void error(@Nullable java.lang.Throwable throwable, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an error message.
Does nothing if level
is Level.OFF
.
throwable
- The throwable associated with the error message.message
- A lambda that returns the message to be logged.level
@JvmStatic public static void info(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an info message.
Does nothing if level
is Level.OFF
or Level.ERROR
.
message
- A lambda that returns the message to be logged.level