JOIDLog
final class JOIDLog
Package: dev.joid.internal · Module: core · Source: JOIDLog.java
Prints the messages of JOID with the [JOID] prefix, information on the standard output and warnings on the error output.
Description
Section titled “Description”Every warning on the errors page goes through JOIDLog.
The warnOnce and devWarnOnce methods print a message once per key for the whole run, so that a warning raised on every frame appears a single time.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | info(String message) static | Prints the message on the standard output, after [JOID] . |
void | warn(String message) static | Prints the message on the error output, after [JOID] . |
void | warn(String message, Throwable cause) static | Prints the message on the error output, then the stack trace of the cause. |
void | warnOnce(String key, String message) static | Prints the warning the first time this key is used, and nothing for the same key afterwards. |
void | warnOnce(String key, String message, Throwable cause) static | Prints the warning and the stack trace of the cause the first time this key is used. |
void | devWarnOnce(String key, Supplier | In dev mode, prints the warning the first time this key is used; outside dev mode, it neither prints nor builds the message. |
void | devWarnOnce(String key, Supplier | In dev mode, prints the warning and the stack trace of the cause the first time this key is used. |
String | nameOf(Class<?> type) static | The simple name of the class, or its full name for an anonymous class, as the messages of JOID write it. |
Method details
Section titled “Method details”void info(String message) static
Prints the message on the standard output, after [JOID] .
void warn(String message) static
Prints the message on the error output, after [JOID] .
void warn(String message, Throwable cause) static
Prints the message on the error output, then the stack trace of the cause.
warnOnce
Section titled “warnOnce”void warnOnce(String key, String message) static
Prints the warning the first time this key is used, and nothing for the same key afterwards.
void warnOnce(String key, String message, Throwable cause) static
Prints the warning and the stack trace of the cause the first time this key is used.
devWarnOnce
Section titled “devWarnOnce”void devWarnOnce(String key, Supplier<String> message) static
In dev mode, prints the warning the first time this key is used; outside dev mode, it neither prints nor builds the message.
void devWarnOnce(String key, Supplier<String> message, Throwable cause) static
In dev mode, prints the warning and the stack trace of the cause the first time this key is used.
nameOf
Section titled “nameOf”String nameOf(Class<?> type) static
The simple name of the class, or its full name for an anonymous class, as the messages of JOID write it.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
