Class LoggerUtil

java.lang.Object
org.tweetyproject.web.services.LoggerUtil

public class LoggerUtil extends Object
Utility class for configuring a Java Logger with both console and file handlers.

This logger is initialized statically and can be accessed through the public logger field. It is configured to output log messages to both the console and a rolling log file named logs/server.log.

The log file is created within a logs directory relative to the working directory. If this directory does not exist, it will be created automatically.

The logger uses SimpleFormatter for formatting both console and file outputs, and it is configured at Level.INFO by default.

This utility is intended for use in TweetyProject's web services module.

Author:
Jonas Klein
See Also:
  • Field Details

    • logger

      public static final Logger logger
      The logger instance for this utility class
  • Constructor Details

    • LoggerUtil

      public LoggerUtil()