Class QJavalinAccessLogger
java.lang.Object
com.kingsrook.qqq.backend.javalin.QJavalinAccessLogger
Access-Logger used for QJavalin handlers.
Can be fully disabled through the JavalinMetaData object, or via system property:
qqq.javalin.loggerDisabled
Alternatively, individual log types and even actions can be enabled or disabled
via the logFilter in JavalinMetaData.
Note - when working in this class - be overly aggressive with wrapping
everything in try-catch, and not allowing exceptions to bubble. There isn't
much more of a disappointment then when logging code breaks user actions...
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
input to filter method (from javalin meta data), to decide if entry should be logged.static class
static enum
Types of log entries - useful for a filter (from javalin meta data). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
logEndFail
(Throwable t, LogPair... logPairs) static void
logEndSuccess
(LogPair... logPairs) static void
logEndSuccessIfSlow
(long slowThreshold, LogPair... logPairs) logPairIfSlow
(String key, Object value, long slowThreshold) static void
logProcessSummary
(String processName, String processUUID, RunProcessOutput runProcessOutput) static void
-
Field Details
-
DISABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
QJavalinAccessLogger
public QJavalinAccessLogger()
-
-
Method Details
-
logStart
-
logEndSuccessIfSlow
-
logEndSuccess
-
logEndFail
-
logPairIfSlow
public static QJavalinAccessLogger.LogPairIfSlow logPairIfSlow(String key, Object value, long slowThreshold) -
logProcessSummary
public static void logProcessSummary(String processName, String processUUID, RunProcessOutput runProcessOutput)
-