Class LogSource


  • public class LogSource
    extends Object
    Identifies where a LogMessage came from.
    Author:
    Matthias Arzt
    • Method Detail

      • newRoot

        public static LogSource newRoot()
        Returns the root log source. This LogSource represents the empty list.
      • subSource

        public LogSource subSource​(String subPath)
        Returns a log source with the given path.
        Parameters:
        subPath - Relative path to the source, divided by SEPARATOR.
      • path

        public List<String> path()
        Returns the list of strings which is represented by this LogSource.
      • name

        public String name()
        Returns the last entry in the list of strings.
      • isRoot

        public boolean isRoot()
      • parent

        public LogSource parent()
        Gets the parent of this source, or null if the source is a root.
      • setLogLevel

        public void setLogLevel​(int logLevel)
      • hasLogLevel

        public boolean hasLogLevel()
      • logLevel

        public int logLevel()