Class JavaLogService

    • Constructor Detail

      • JavaLogService

        public JavaLogService()
    • Method Detail

      • getPriority

        public int getPriority()
      • getLog

        public Logger getLog​(Class clazz)
        Description copied from interface: LogService
        Creates a logger for logging from the given class. Unlike most logging systems, there is no exposed getLog(String) method in order to provide more consistency in how logs are named.
      • getLogName

        protected String getLogName​(Class clazz)
        Because java.util.logging differentiates between the log name and the class/method logging, we can collapses the log names to a simpler/smaller set to allow configuration to rely on the class name less.

        This implementation always returns the 2nd level liquibase package name for the class passed in OR from any liquibase interfaces/classes it implements. For example, all Change classes will return a log name of "liquibase.change" no matter what class name or package name they have.
      • getParent

        public Logger getParent()
      • setParent

        public void setParent​(Logger parent)
        Explicitly control the parent logger for all Logger instances created.
      • getCustomFormatter

        public Formatter getCustomFormatter()
      • setFormatterOnHandler

        public static void setFormatterOnHandler​(LogService logService,
                                                 Handler handler)
        Set the formatter for the supplied handler if the supplied log service is a JavaLogService and that service specifies a custom formatter.