Class LogQueryConfig

java.lang.Object
com.inductiveautomation.ignition.common.logging.LogQueryConfig
All Implemented Interfaces:
Serializable

public class LogQueryConfig extends Object implements 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:
  • Constructor Details

    • LogQueryConfig

      public LogQueryConfig()
  • Method Details

    • addAllowedLogger

      public void addAllowedLogger(String logger)
    • getAllowedLoggers

      public List<String> getAllowedLoggers()
    • addAllowedMarker

      public void addAllowedMarker(String marker)
    • addSearchTerms

      public void addSearchTerms(List<String> terms)
    • addSearchTerm

      public void addSearchTerm(String term)
    • getSearchTerms

      public List<String> getSearchTerms()
    • getAllowedMarkers

      public List<String> getAllowedMarkers()
    • getPropertyFilters

      public List<LogQueryConfig.PropertyFilter> getPropertyFilters()
    • addPropertyFilter

      public void addPropertyFilter(String key, String value)
    • getMinLevel

      public Level getMinLevel()
    • setMinLevel

      public void setMinLevel(Level minLevel)
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • newBuilder

      public static LogQueryConfig.LogQueryConfigBuilder newBuilder()