public class LogSource extends Object
LogMessage
came from.Modifier and Type | Method and Description |
---|---|
boolean |
hasLogLevel() |
boolean |
isRoot() |
int |
logLevel() |
String |
name()
Returns the last entry in the list of strings.
|
static LogSource |
newRoot()
Returns the root log source.
|
LogSource |
parent()
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.
|
void |
setLogLevel(int logLevel) |
LogSource |
subSource(String subPath)
Returns a log source with the given path.
|
String |
toString() |
public static final String SEPARATOR
public static LogSource newRoot()
public LogSource subSource(String subPath)
subPath
- Relative path to the source, divided by
SEPARATOR
.public String name()
public boolean isRoot()
public LogSource parent()
public void setLogLevel(int logLevel)
public boolean hasLogLevel()
public int logLevel()
Copyright © 2015–2022 SciJava. All rights reserved.