Class AdapterLogger

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit setupLogging(String filename, Integer backupFileCount, Long maxSize) Sets up logging using the given parameters
      final static Unit setupLogging(String filename, Integer backupFileCount) Sets up logging using the given parameters
      final static Unit setupLogging(String filename) Sets up logging using the given parameters
      final static Logger getLogger() Returns a Logger with the name of the calling class.
      final static Logger getLogger(String name) Returns a Logger with the name of the calling class.
      final static Unit rotate() Manually trigger the log files to rotate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • setupLogging

         final static Unit setupLogging(String filename, Integer backupFileCount, Long maxSize)

        Sets up logging using the given parameters

        Parameters:
        filename - The name of the file to log to.
        backupFileCount - The total number of backup files to retain.
        maxSize - The maximum size in bytes of each file before the file automatically rotates to a new one.
      • setupLogging

         final static Unit setupLogging(String filename, Integer backupFileCount)

        Sets up logging using the given parameters

        Parameters:
        filename - The name of the file to log to.
        backupFileCount - The total number of backup files to retain.
      • setupLogging

         final static Unit setupLogging(String filename)

        Sets up logging using the given parameters

        Parameters:
        filename - The name of the file to log to.
      • getLogger

         final static Logger getLogger()

        Returns a Logger with the name of the calling class. This is identical to calling Log4j's LogManager.getLogger() method. It is reimplemented here for convenience.

        Returns:

        The Logger for the calling class.

      • getLogger

         final static Logger getLogger(String name)

        Returns a Logger with the name of the calling class. This is identical to calling Log4j's LogManager.getLogger(name) method. It is reimplemented here for convenience.

        Parameters:
        name - the name of the Logger.
        Returns:

        The Logger with the given name.

      • rotate

         final static Unit rotate()

        Manually trigger the log files to rotate.