Configuration class for Logback logging framework.
More...
|
| void | printLogStatus (final LoggerContext context) |
| | Prints the logger status to the log in case of errors or warnings.
|
| |
|
| static final Logger | LOG = LoggerFactory.getLogger(MyLogbackConfig.class) |
| |
Configuration class for Logback logging framework.
This class sets up and configures Logback for the application.
◆ MyLogbackConfig()
| fr.softsf.sudokufx.config.MyLogbackConfig.MyLogbackConfig |
( |
IOsFolder | iOsFolder | ) |
|
Constructor that initializes the logging configuration.
- Parameters
-
| iOsFolder | Factory for creating OS-specific folder paths. |
◆ configureLogback()
| LoggerContext fr.softsf.sudokufx.config.MyLogbackConfig.configureLogback |
( |
| ) |
|
|
package |
Configures Logback using the specified configuration file.
- Returns
- the configured
LoggerContext
- Exceptions
-
| IllegalArgumentException | if the configuration resource cannot be found (inputStream is null) |
| LogbackConfigurationException | if an error occurs during Logback configuration |
◆ getLogsFolderPath()
| String fr.softsf.sudokufx.config.MyLogbackConfig.getLogsFolderPath |
( |
| ) |
|
◆ printLogEntryMessage()
| void fr.softsf.sudokufx.config.MyLogbackConfig.printLogEntryMessage |
( |
| ) |
|
Logs the ASCII logo (with app name and version), an optional optimization message at startup.
◆ printLogStatus()
| void fr.softsf.sudokufx.config.MyLogbackConfig.printLogStatus |
( |
final LoggerContext | context | ) |
|
|
private |
Prints the logger status to the log in case of errors or warnings.
- Parameters
-
| context | The current logger context |
◆ setLogBackPathForTests()
| void fr.softsf.sudokufx.config.MyLogbackConfig.setLogBackPathForTests |
( |
| ) |
|
|
package |
Sets an invalid logback configuration path for testing purposes.
This method should only be used in test scenarios.
◆ LOG
| final Logger fr.softsf.sudokufx.config.MyLogbackConfig.LOG = LoggerFactory.getLogger(MyLogbackConfig.class) |
|
staticprivate |
◆ logBackPath
| String fr.softsf.sudokufx.config.MyLogbackConfig.logBackPath = CONFIG_LOGBACK_PATH.getPath() |
|
private |
◆ logsFolderPath
| final String fr.softsf.sudokufx.config.MyLogbackConfig.logsFolderPath |
|
private |
The documentation for this class was generated from the following file: