Package org.scijava.log
Class LogSource
- java.lang.Object
-
- org.scijava.log.LogSource
-
public class LogSource extends Object
Identifies where aLogMessagecame from.- Author:
- Matthias Arzt
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasLogLevel()booleanisRoot()intlogLevel()Stringname()Returns the last entry in the list of strings.static LogSourcenewRoot()Returns the root log source.LogSourceparent()Gets the parent of this source, or null if the source is a root.List<String>path()Returns the list of strings which is represented by this LogSource.voidsetLogLevel(int logLevel)LogSourcesubSource(String subPath)Returns a log source with the given path.StringtoString()
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
-
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 bySEPARATOR.
-
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()
-
-