Class FileLogger

  • All Implemented Interfaces:
    Logger

    public class FileLogger
    extends AbstractLogger
    File implementation which sends logged messages to a file.
    • Constructor Detail

      • FileLogger

        public FileLogger​(File file,
                          boolean append)
        Parameters:
        file - the file to log to
        append - if true the file is appended to insted of being erased
      • FileLogger

        public FileLogger​(String file,
                          boolean append)
        Parameters:
        file - the file to log to
        append - if true the file is appended to insted of being erased
    • Method Detail

      • doLog

        protected void doLog​(LogLevel level,
                             String message,
                             String category)
        Common method for all severity levels.
        Specified by:
        doLog in class AbstractLogger
        Parameters:
        level - the log level (aka severity) of the message
        message - the message to log
        category - the log category