Skip to content

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.

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.

ReturnsSignatureSummary
voidinfo(String message) staticPrints the message on the standard output, after [JOID] .
voidwarn(String message) staticPrints the message on the error output, after [JOID] .
voidwarn(String message, Throwable cause) staticPrints the message on the error output, then the stack trace of the cause.
voidwarnOnce(String key, String message) staticPrints the warning the first time this key is used, and nothing for the same key afterwards.
voidwarnOnce(String key, String message, Throwable cause) staticPrints the warning and the stack trace of the cause the first time this key is used.
voiddevWarnOnce(String key, Supplier message) staticIn dev mode, prints the warning the first time this key is used; outside dev mode, it neither prints nor builds the message.
voiddevWarnOnce(String key, Supplier message, Throwable cause) staticIn dev mode, prints the warning and the stack trace of the cause the first time this key is used.
StringnameOf(Class<?> type) staticThe simple name of the class, or its full name for an anonymous class, as the messages of JOID write it.

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<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.

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

Report a problem with this page