Class LogQueryConfig
java.lang.Object
com.inductiveautomation.ignition.common.logging.LogQueryConfig
- All Implemented Interfaces:
Serializable
A set of parameters for querying the logging system. Can be created by hand,
or with LogQueryConfigBuilder.newBuilder() (the preferred method)
If a limit is specified, there might be additional rows available. The result set may have an estimate available, but you can always call query again with the same filter, but with the offset moved forward.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedLogger(String logger) voidaddAllowedMarker(String marker) voidaddPropertyFilter(String key, String value) voidaddSearchTerm(String term) voidaddSearchTerms(List<String> terms) longbooleanintgetLimit()intlongvoidsetEstimateTotalSize(boolean estimateTotalSize) voidsetLimit(int limit) voidsetMinLevel(Level minLevel) voidsetOffset(int offset) voidsetTimeRange(long start, long end) Sets a time range filter.toString()
-
Constructor Details
-
LogQueryConfig
public LogQueryConfig()
-
-
Method Details
-
addAllowedLogger
-
getAllowedLoggers
-
addAllowedMarker
-
addSearchTerms
-
addSearchTerm
-
getSearchTerms
-
getAllowedMarkers
-
getPropertyFilters
-
addPropertyFilter
-
getMinLevel
-
setMinLevel
-
getLimit
public int getLimit() -
setLimit
public void setLimit(int limit) -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getStartTime
public long getStartTime() -
getEndTime
public long getEndTime() -
setTimeRange
public void setTimeRange(long start, long end) Sets a time range filter. If either value is 0, it won't be included in the filter. For a time range relative to "now", set end=0, and start = -(ms range). -
getEstimateTotalSize
public boolean getEstimateTotalSize() -
setEstimateTotalSize
public void setEstimateTotalSize(boolean estimateTotalSize) -
toString
-
newBuilder
-