Fray Engine
Loading...
Searching...
No Matches
fray::logs::Query Struct Reference

Filters and cursor for a page of log entries. More...

#include <log_store.hpp>

Public Attributes

std::uint64_t beforeUs = 0
 Exclusive arrival cursor; zero selects the newest entries.
std::uint32_t limit = 100
 Maximum results requested; page enforces a minimum of one.
std::vector< int > processes
 Allowed process identifiers; empty disables this filter.
std::vector< std::string > levels
 Allowed severity labels; empty disables this filter.
bool filterProject = false
 Whether to filter by the exact project identifier.
std::string project
 Project identifier to match when filterProject is true; empty selects application entries.
std::string contains
 Literal SQLite LIKE substring filter for message text; empty disables it.
bool consoleOnly = false
 Exclude entries intended only for the persisted log.

Detailed Description

Filters and cursor for a page of log entries.

Definition at line 78 of file log_store.hpp.

Member Data Documentation

◆ beforeUs

std::uint64_t fray::logs::Query::beforeUs = 0

Exclusive arrival cursor; zero selects the newest entries.

Definition at line 83 of file log_store.hpp.

◆ consoleOnly

bool fray::logs::Query::consoleOnly = false

Exclude entries intended only for the persisted log.

Definition at line 109 of file log_store.hpp.

◆ contains

std::string fray::logs::Query::contains

Literal SQLite LIKE substring filter for message text; empty disables it.

Definition at line 107 of file log_store.hpp.

◆ filterProject

bool fray::logs::Query::filterProject = false

Whether to filter by the exact project identifier.

Definition at line 99 of file log_store.hpp.

◆ levels

std::vector<std::string> fray::logs::Query::levels

Allowed severity labels; empty disables this filter.

Definition at line 95 of file log_store.hpp.

◆ limit

std::uint32_t fray::logs::Query::limit = 100

Maximum results requested; page enforces a minimum of one.

Definition at line 87 of file log_store.hpp.

◆ processes

std::vector<int> fray::logs::Query::processes

Allowed process identifiers; empty disables this filter.

Definition at line 91 of file log_store.hpp.

◆ project

std::string fray::logs::Query::project

Project identifier to match when filterProject is true; empty selects application entries.

Definition at line 103 of file log_store.hpp.


The documentation for this struct was generated from the following file: