Package io.fusionauth.http.log
Class AccumulatingLogger
java.lang.Object
io.fusionauth.http.log.BaseLogger
io.fusionauth.http.log.AccumulatingLogger
- All Implemented Interfaces:
Logger
A logger that accumulates the log messages into an ArrayList that can later be output to a file or output to the console. Great for
testing when sysout logging would be way too spammy.
- Author:
- Brian Pontarelli
-
Field Summary
Fields inherited from class io.fusionauth.http.log.BaseLogger
level -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleMessage(String message) voidreset()toString()Methods inherited from class io.fusionauth.http.log.BaseLogger
debug, debug, debug, error, error, format, format, getLevelOrdinal, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, setLevel, timestamp, trace, traceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.fusionauth.http.log.Logger
isEnabledForLevel
-
Constructor Details
-
AccumulatingLogger
public AccumulatingLogger()
-
-
Method Details
-
reset
public void reset() -
toString
-
handleMessage
- Specified by:
handleMessagein classBaseLogger
-