Index

A C D E F G H I L M R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addLogBufferListener(LogBuffer.LogBufferListener) - Method in class com.dua3.utility.logging.LogBuffer
Add LogBufferListener.
addLogEntryHandler(LogEntryHandler) - Method in interface com.dua3.utility.logging.LogEntryDispatcher
Adds a handler for log entry events.
ALL_PASS_FILTER - Static variable in interface com.dua3.utility.logging.LogEntryFilter
A LogEntryFilter that allows all log entries to pass through.
allPass() - Static method in interface com.dua3.utility.logging.LogEntryFilter
Returns a LogEntryFilter that allows all log entries to pass through.
appendTo(Appendable) - Method in class com.dua3.utility.logging.LogBuffer
Appends all LogEntries in this LogBuffer to the specified Appendable.
assureInitialized() - Static method in class com.dua3.utility.logging.LogUtil
Checks if the globalDispatcher variable is null and initializes it by calling the init() method if necessary.

C

clear() - Method in class com.dua3.utility.logging.LogBuffer
Clear the LogBuffer.
clear() - Method in interface com.dua3.utility.logging.LogBuffer.LogBufferListener
Called after the buffer has been cleared.
com.dua3.utility.logging - module com.dua3.utility.logging
The com.dua3.utility.logging module is responsible for providing utilities related to logging.
com.dua3.utility.logging - package com.dua3.utility.logging
Classes and utilities related to logging.
ConsoleHandler - Class in com.dua3.utility.logging
The ConsoleHandler class is an implementation of the LogEntryHandler interface.
ConsoleHandler(PrintStream, boolean) - Constructor for class com.dua3.utility.logging.ConsoleHandler
Constructs a ConsoleHandler with the specified PrintStream and colored flag.
copy() - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Creates a copy of the DefaultLogEntryFilter with the same log level and filter.

D

DEBUG - Enum constant in enum class com.dua3.utility.logging.LogLevel
 
DEFAULT_CAPACITY - Static variable in class com.dua3.utility.logging.LogBuffer
The default capacity.
DefaultLogEntryFilter - Class in com.dua3.utility.logging
The DefaultLogEntryFilter class is an implementation of the LogEntryFilter interface that filters log entries based on their log level and a user-defined filter.
DefaultLogEntryFilter() - Constructor for class com.dua3.utility.logging.DefaultLogEntryFilter
Constructs a new DefaultLogEntryFilter with LogLevel.TRACE as the default log level and a filter that lets all log entries pass.
DefaultLogEntryFilter(LogLevel, BiPredicate<String, LogLevel>) - Constructor for class com.dua3.utility.logging.DefaultLogEntryFilter
Constructs a new DefaultLogEntryFilter with the specified log level and filter.

E

entries(int, int) - Method in interface com.dua3.utility.logging.LogBuffer.LogBufferListener
Called when multiple entries have been added in a batch.
ERROR - Enum constant in enum class com.dua3.utility.logging.LogLevel
 

F

format(String, String) - Method in interface com.dua3.utility.logging.LogEntry
Formats the log entry with the given prefix and suffix.

G

get(int) - Method in class com.dua3.utility.logging.LogBuffer
Get the LogEntry at the specified index in the LogBuffer.
getDispatcher() - Method in interface com.dua3.utility.logging.ILogEntryDispatcherFactory
Retrieves the LogEntryDispatcher instance and connects all available loggers to it.
getFilter() - Method in class com.dua3.utility.logging.ConsoleHandler
Retrieves the filter for log entries.
getFilter() - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Retrieves the filter used to determine if a log entry should be included or excluded.
getFilter() - Method in interface com.dua3.utility.logging.LogEntryDispatcher
getGlobalDispatcher() - Static method in class com.dua3.utility.logging.LogUtil
Returns the global LogEntryDispatcher by using the available ILogEntryDispatcherFactory implementations loaded through ServiceLoader and connects all known loggers to it.
getLevel() - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Retrieves the log level of the DefaultLogEntryFilter.
getLogEntryHandlers() - Method in interface com.dua3.utility.logging.LogEntryDispatcher
Get the registered log entry handlers.

H

handleEntry(LogEntry) - Method in class com.dua3.utility.logging.ConsoleHandler
 
handleEntry(LogEntry) - Method in class com.dua3.utility.logging.LogBuffer
 
handleEntry(LogEntry) - Method in interface com.dua3.utility.logging.LogEntryHandler
Handles a log entry.

I

ILogEntryDispatcherFactory - Interface in com.dua3.utility.logging
Interface for a factory that provides an instance of the LogEntryDispatcher.
INFO - Enum constant in enum class com.dua3.utility.logging.LogLevel
 
isColored() - Method in class com.dua3.utility.logging.ConsoleHandler
Check if colored output is enabled.

L

level() - Method in interface com.dua3.utility.logging.LogEntry
Returns the log level of the LogEntry.
LogBuffer - Class in com.dua3.utility.logging
A log buffer class intended to provide a buffer for log messages to display in GUI applications.
LogBuffer() - Constructor for class com.dua3.utility.logging.LogBuffer
Construct a new LogBuffer instance with default capacity.
LogBuffer(int) - Constructor for class com.dua3.utility.logging.LogBuffer
Construct a new LogBuffer instance.
LogBuffer.LogBufferListener - Interface in com.dua3.utility.logging
Interface for Listeners on changes of a LogBuffer instance's contents.
LogEntry - Interface in com.dua3.utility.logging
The LogEntry interface represents a log entry with various properties such as message, logger name, time, level, marker, and throwable.
LogEntryDispatcher - Interface in com.dua3.utility.logging
This interface defines the contract for classes that dispatch log entries to registered handlers.
LogEntryFilter - Interface in com.dua3.utility.logging
The LogEntryFilter interface represents a filter used to determine if a LogEntry should be included or excluded.
LogEntryHandler - Interface in com.dua3.utility.logging
Represents a functional interface for handling log entries.
loggerName() - Method in interface com.dua3.utility.logging.LogEntry
Returns the name of the logger associated with the log entry.
LogLevel - Enum Class in com.dua3.utility.logging
Enumeration representing different log levels.
LogUtil - Class in com.dua3.utility.logging
Utility class for logging operations.

M

marker() - Method in interface com.dua3.utility.logging.LogEntry
Returns the marker associated with this log entry.
message() - Method in interface com.dua3.utility.logging.LogEntry
Retrieves the message of the log entry.

R

readExternal(ObjectInput) - Method in class com.dua3.utility.logging.LogBuffer
 
removeLogBufferListener(LogBuffer.LogBufferListener) - Method in class com.dua3.utility.logging.LogBuffer
Remove LogBufferListener.
removeLogEntryHandler(LogEntryHandler) - Method in interface com.dua3.utility.logging.LogEntryDispatcher
Removes a previously added log entry handler.

S

setColored(boolean) - Method in class com.dua3.utility.logging.ConsoleHandler
Enable/Disable colored output using ANSI codes.
setFilter(LogEntryFilter) - Method in class com.dua3.utility.logging.ConsoleHandler
Sets the filter for log entries.
setFilter(LogEntryFilter) - Method in interface com.dua3.utility.logging.LogEntryDispatcher
Sets the LogEntryFilter for log entry events.
setFilter(BiPredicate<String, LogLevel>) - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Sets the filter of the DefaultLogEntryFilter.
setLevel(LogLevel) - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Sets the log level of the DefaultLogEntryFilter.
size() - Method in class com.dua3.utility.logging.LogBuffer
Returns the size of the LogBuffer.
subList(int, int) - Method in class com.dua3.utility.logging.LogBuffer
Returns a view of the portion of this LogBuffer between the specified fromIndex, inclusive, and toIndex, exclusive.

T

test(LogEntry) - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
 
test(LogEntry) - Method in interface com.dua3.utility.logging.LogEntryFilter
Test if a LogEntry should be processed.
throwable() - Method in interface com.dua3.utility.logging.LogEntry
Returns the throwable object associated with this LogEntry.
time() - Method in interface com.dua3.utility.logging.LogEntry
Returns the time when the logging event was created as an Instant object.
toArray() - Method in class com.dua3.utility.logging.LogBuffer
Converts the LogBuffer into an array of LogEntry objects.
TRACE - Enum constant in enum class com.dua3.utility.logging.LogLevel
 

V

valueOf(String) - Static method in enum class com.dua3.utility.logging.LogLevel
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.dua3.utility.logging.LogLevel
Returns an array containing the constants of this enum class, in the order they are declared.

W

WARN - Enum constant in enum class com.dua3.utility.logging.LogLevel
 
withFilter(BiPredicate<String, LogLevel>) - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Returns a new {code DefaultLogEntryFilter} with the same log level and the specified filter.
withLevel(LogLevel) - Method in class com.dua3.utility.logging.DefaultLogEntryFilter
Returns a new DefaultLogEntryFilter with the same filter and the specified log level.
writeExternal(ObjectOutput) - Method in class com.dua3.utility.logging.LogBuffer
 
A C D E F G H I L M R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form