LazyArg

public interface LazyArg<T>

Functional interface for allowing lazily evaluated arguments to be supplied to Flogger. This allows callers to defer argument evaluation efficiently when:

  • Doing "fine" logging that's normally disabled
  • Applying rate limiting to log statements

Functions

Link copied to clipboard
@Nullable()
public abstract @Nullable() T evaluate()
Computes a value to use as a log argument.