Class Logging (0.27.0)

public class Logging

Util class for formatting log messages.

Inheritance

java.lang.Object > Logging

Static Methods

format(String method, Logging.Action action)

public static Supplier<String> format(String method, Logging.Action action)

Create a log message with the current thread name, method and action.

Parameters
NameDescription
methodString
actionLogging.Action
Returns
TypeDescription
Supplier<String>

format(String method, Logging.Action action, Supplier<String> message)

public static Supplier<String> format(String method, Logging.Action action, Supplier<String> message)

Format a log message by prepending the current thread name, method, and action to the message.

Parameters
NameDescription
methodString
actionLogging.Action
messageSupplier<String>
Returns
TypeDescription
Supplier<String>

format(String method, Supplier<String> message)

public static Supplier<String> format(String method, Supplier<String> message)

Format a log message by prepending the current thread name and method to the message.

Parameters
NameDescription
methodString
messageSupplier<String>
Returns
TypeDescription
Supplier<String>

Constructors

Logging()

public Logging()