Module com.renomad.minum
Package com.renomad.minum.logging
package com.renomad.minum.logging
These classes enable outputting messages during the program run, labeled to indicate
the category. It is able to do this without slowing down the system unduly. Start
by reviewing
ILogger
Examples:
this.logger = context.getLogger();
logger.logDebug(() -> "an empty path was provided to writeString");
logger.logTrace(() -> String.format("client connected from %s", sw.getRemoteAddrWithPort()));
logger.logAsyncError(() -> String.format("Error while reading file: %s. %s", path, StacktraceUtils.stackTraceToString(e)));
logger.logAudit(() -> String.format("%s has posted a new video, %s, with short description of %s, size of %d",
authResult.user().getUsername(),
newFilename,
shortDescription,
countOfVideoBytes
));
-
ClassDescriptionLogging code interfaceImplementation of
ILogger
An enumeration of the levels of logging our system provides.This implementation ofLogger
has a few extra functions that only apply to tests, likeTestLogger.test(String)
An implementation ofRuntimeException
, scoped for the TestLogger.Used inTestLogger
as a circular queue to store the most recent log statements for analysis.ThrowingSupplier<T,E extends Exception> a functional interface used inILogger
, allows exceptions to bubble up.