SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.utils.MyLogback Class Reference

Configuration class for Logback logging framework. More...

+ Collaboration diagram for fr.softsf.sudokufx.utils.MyLogback:

Public Member Functions

 MyLogback (OsFolderFactoryManager osFolderFactory)
 Constructor that initializes the logging configuration.
 
void printLogEntryMessage ()
 Prints the application's ASCII logo to the log as an entry message.
 

Package Functions

LoggerContext configureLogback ()
 Configures Logback using the specified configuration file.
 
void setLogBackPathForTests ()
 Sets an invalid logback configuration path for testing purposes.
 

Private Member Functions

void printLogStatus (final LoggerContext context)
 Prints the logger status to the log in case of errors or warnings.
 

Private Attributes

String logBackPath = CONFIG_LOGBACK_PATH.getPath()
 
final String logsFolderPath
 

Detailed Description

Configuration class for Logback logging framework.

This class sets up and configures Logback for the application.

Constructor & Destructor Documentation

◆ MyLogback()

fr.softsf.sudokufx.utils.MyLogback.MyLogback ( OsFolderFactoryManager osFolderFactory)

Constructor that initializes the logging configuration.

Parameters
osFolderFactoryFactory for creating OS-specific folders
+ Here is the call graph for this function:

Member Function Documentation

◆ configureLogback()

LoggerContext fr.softsf.sudokufx.utils.MyLogback.configureLogback ( )
package

Configures Logback using the specified configuration file.

Returns
The configured LoggerContext
Exceptions
RuntimeExceptionif there's an error during configuration

◆ printLogEntryMessage()

void fr.softsf.sudokufx.utils.MyLogback.printLogEntryMessage ( )

Prints the application's ASCII logo to the log as an entry message.

If the Spring context is set to exit on refresh, it also logs an optimizing startup message.

+ Here is the call graph for this function:

◆ printLogStatus()

void fr.softsf.sudokufx.utils.MyLogback.printLogStatus ( final LoggerContext context)
private

Prints the logger status to the log in case of errors or warnings.

Parameters
contextThe current logger context

◆ setLogBackPathForTests()

void fr.softsf.sudokufx.utils.MyLogback.setLogBackPathForTests ( )
package

Sets an invalid logback configuration path for testing purposes.

This method should only be used in test scenarios.

Member Data Documentation

◆ logBackPath

String fr.softsf.sudokufx.utils.MyLogback.logBackPath = CONFIG_LOGBACK_PATH.getPath()
private

◆ logsFolderPath

final String fr.softsf.sudokufx.utils.MyLogback.logsFolderPath
private

The documentation for this class was generated from the following file: