Index

A B C D E F G I L M P R S T U V W Y 
All Classes and Interfaces|All Packages

A

addLogsFiles(LoggyFile...) - Method in class fr.diskmth.loggy.Loggy
Adds specified log files to the logger's handlers.
ANSI - Class in fr.diskmth.loggy
The ANSI class provides a set of static constants and methods to format console output using ANSI escape codes.
ANSI(String) - Constructor for class fr.diskmth.loggy.ANSI
Creates an instance of ANSI with the specified code.

B

BLACK - Static variable in class fr.diskmth.loggy.ANSI
 
BLACK_BG - Static variable in class fr.diskmth.loggy.ANSI
 
BLACK_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
BLACK_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 
BLUE - Static variable in class fr.diskmth.loggy.ANSI
 
BLUE_BG - Static variable in class fr.diskmth.loggy.ANSI
 
BLUE_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
BLUE_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 
BOLD - Static variable in class fr.diskmth.loggy.ANSI
 
buildStackTrace(Throwable) - Method in class fr.diskmth.loggy.Loggy
Builds a stack trace from a Throwable object.

C

clearFormat(String) - Static method in class fr.diskmth.loggy.ANSI
Removes ANSI formatting codes from a string.
clearLogDir() - Method in class fr.diskmth.loggy.LoggyFile
Clears any empty log files in the log directory.
close() - Method in class fr.diskmth.loggy.LoggyFile
Closes the file handler and clears any existing logs in the directory.
code - Variable in class fr.diskmth.loggy.ANSI
 
CYAN - Static variable in class fr.diskmth.loggy.ANSI
 
CYAN_BG - Static variable in class fr.diskmth.loggy.ANSI
 
CYAN_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
CYAN_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 

D

DEBUG - Enum constant in enum class fr.diskmth.loggy.LoggyLevel
 
DEFAULT - Static variable in class fr.diskmth.loggy.LoggyFormatter
The default LoggyFormatter with predefined ANSI codes for each log level.

E

ERROR - Enum constant in enum class fr.diskmth.loggy.LoggyLevel
 

F

FATAL - Enum constant in enum class fr.diskmth.loggy.LoggyLevel
 
fileHandler - Variable in class fr.diskmth.loggy.LoggyFile
 
format(LoggyLevel, String, String) - Method in class fr.diskmth.loggy.LoggyFormatter
Formats a log message using ANSI codes.
format(String, ANSI...) - Static method in class fr.diskmth.loggy.ANSI
Formats a string with the specified ANSI codes.
formatter - Variable in class fr.diskmth.loggy.Loggable
 
fr.diskmth.loggy - package fr.diskmth.loggy
 
fromJavaLevel(Level) - Static method in enum class fr.diskmth.loggy.LoggyLevel
Returns the corresponding LoggyLevel enum value based on the input Java logging level.

G

getCode() - Method in class fr.diskmth.loggy.ANSI
Returns the ANSI code associated with the instance.
getDir() - Method in class fr.diskmth.loggy.LoggyFile
Returns the directory containing the log file.
getFileFormatter() - Method in class fr.diskmth.loggy.LoggyFormatter
Returns a LoggyFormatter that clears all ANSI codes from the parent LoggyFormatter's output.
getFileHandler() - Method in class fr.diskmth.loggy.LoggyFile
Returns the file handler for this LoggyFile object.
getFileName() - Method in class fr.diskmth.loggy.LoggyFile
Returns the filename of the log file.
getFormatter() - Method in class fr.diskmth.loggy.Loggable
Gets the formatter used to format log messages.
getName() - Method in class fr.diskmth.loggy.Loggy
Returns the logger's name.
getPath() - Method in class fr.diskmth.loggy.LoggyFile
Returns the path to the log file.
GREEN - Static variable in class fr.diskmth.loggy.ANSI
 
GREEN_BG - Static variable in class fr.diskmth.loggy.ANSI
 
GREEN_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
GREEN_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 

I

INFO - Enum constant in enum class fr.diskmth.loggy.LoggyLevel
 
init() - Method in class fr.diskmth.loggy.LoggyFile
Initializes the log file by creating the directory if it doesn't exist, setting up the file handler, and clearing any existing logs in the directory.
isMuted - Variable in class fr.diskmth.loggy.Loggable
 
isMuted() - Method in class fr.diskmth.loggy.Loggable
Gets whether or not the log output is muted.
ITALIC - Static variable in class fr.diskmth.loggy.ANSI
 

L

levelsFormat() - Method in class fr.diskmth.loggy.LoggyFormatter
Returns the ANSI codes for each log level.
log(String, LoggyLevel, LoggyFile...) - Method in class fr.diskmth.loggy.Loggy
Logs a message with a specified level and log files.
log(String, Throwable, LoggyLevel, LoggyFile...) - Method in class fr.diskmth.loggy.Loggy
Logs a message with a specified level and log files.
log(Throwable, LoggyLevel, LoggyFile...) - Method in class fr.diskmth.loggy.Loggy
Logs a Throwable object with a specified level and log files.
Loggable - Class in fr.diskmth.loggy
The Loggable class is an abstract class that provides basic logging functionality.
Loggable(LoggyFormatter) - Constructor for class fr.diskmth.loggy.Loggable
Creates a new Loggable object with the given formatter.
logger - Variable in class fr.diskmth.loggy.Loggy
 
Loggy - Class in fr.diskmth.loggy
This class extends Loggable and provides logging functionality through a logger object from the java.util.logging package.
Loggy(String) - Constructor for class fr.diskmth.loggy.Loggy
Constructs a Loggy object with a specified name and a default formatter.
Loggy(String, LoggyFormatter) - Constructor for class fr.diskmth.loggy.Loggy
Constructs a Loggy object with a specified name and formatter.
LoggyFile - Class in fr.diskmth.loggy
LoggyFile is a class that extends the java.util.logging.Handler class and is used to handle logging messages to a file.
LoggyFile(String) - Constructor for class fr.diskmth.loggy.LoggyFile
Constructs a new LoggyFile object with the specified path and the default formatter.
LoggyFile(String, LoggyFormatter) - Constructor for class fr.diskmth.loggy.LoggyFile
Constructs a new LoggyFile object with the specified path and formatter.
LoggyFormatter - Class in fr.diskmth.loggy
An abstract class for formatting log messages using ANSI codes for color and style.
LoggyFormatter() - Constructor for class fr.diskmth.loggy.LoggyFormatter
 
LoggyLevel - Enum Class in fr.diskmth.loggy
LoggyLevel represents the possible logging levels for a log statement.

M

MAGENTA - Static variable in class fr.diskmth.loggy.ANSI
 
MAGENTA_BG - Static variable in class fr.diskmth.loggy.ANSI
 
MAGENTA_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
MAGENTA_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 
multiple(ANSI...) - Static method in class fr.diskmth.loggy.ANSI
Concatenates multiple ANSI codes into a single ANSI instance.

P

path - Variable in class fr.diskmth.loggy.LoggyFile
 

R

RED - Static variable in class fr.diskmth.loggy.ANSI
 
RED_BG - Static variable in class fr.diskmth.loggy.ANSI
 
RED_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
RED_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 
removeLogsFiles(LoggyFile...) - Method in class fr.diskmth.loggy.Loggy
Removes specified log files from the logger's handlers.
RESET - Static variable in class fr.diskmth.loggy.ANSI
 
REVERSE - Static variable in class fr.diskmth.loggy.ANSI
 

S

setFormatter(LoggyFormatter) - Method in class fr.diskmth.loggy.Loggable
Sets the formatter used to format log messages.
STRIKETHROUGH - Static variable in class fr.diskmth.loggy.ANSI
 

T

toggleMute() - Method in class fr.diskmth.loggy.Loggable
Toggles whether or not the log output is muted.
toJavaFormatter(LoggyFormatter) - Static method in class fr.diskmth.loggy.LoggyFormatter
Converts a LoggyFormatter to a Java Formatter.
toJavaLevel() - Method in enum class fr.diskmth.loggy.LoggyLevel
Returns the corresponding Java logging level based on this LoggyLevel enum value.

U

UNDERLINE - Static variable in class fr.diskmth.loggy.ANSI
 

V

valueOf(String) - Static method in enum class fr.diskmth.loggy.LoggyLevel
Returns the enum constant of this class with the specified name.
values() - Static method in enum class fr.diskmth.loggy.LoggyLevel
Returns an array containing the constants of this enum class, in the order they are declared.

W

WARN - Enum constant in enum class fr.diskmth.loggy.LoggyLevel
 
WHITE - Static variable in class fr.diskmth.loggy.ANSI
 
WHITE_BG - Static variable in class fr.diskmth.loggy.ANSI
 
WHITE_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
WHITE_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 

Y

YELLOW - Static variable in class fr.diskmth.loggy.ANSI
 
YELLOW_BG - Static variable in class fr.diskmth.loggy.ANSI
 
YELLOW_BRIGHT - Static variable in class fr.diskmth.loggy.ANSI
 
YELLOW_BRIGHT_BG - Static variable in class fr.diskmth.loggy.ANSI
 
A B C D E F G I L M P R S T U V W Y 
All Classes and Interfaces|All Packages