public static class OCastLog.Companion
The companion object.
| Modifier and Type | Method and Description |
|---|---|
void |
debug(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a debug message.
|
void |
error(java.lang.Throwable throwable,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an error message.
|
OCastLog.Level |
getLevel()
The current OCast log level.
|
void |
info(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an info message.
|
void |
setLevel(OCastLog.Level p)
The current OCast log level.
|
@NotNull public OCastLog.Level getLevel()
The current OCast log level.
Default value is Level.OFF.
public void setLevel(@NotNull
OCastLog.Level p)
The current OCast log level.
Default value is Level.OFF.
@JvmStatic
public 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 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