|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Typedefs | |
| using | Metadata = db::EventsContainer::FileMetadata |
Functions | |
| std::string_view | Trim (std::string_view s) |
| Metadata | ReadHeader (std::istream &in, std::string &firstDataLine) |
| std::string | Field (const db::LogEvent::EventItems &items, std::string_view key) |
| std::string | EventTimestamp (std::string_view line) |
| std::string | LastEventTimestamp (const fs::path &file) |
| Timestamp of the last event line, read from the end of the file. | |
| std::string | FileTestName (const fs::path &file) |
| std::string | ToUpper (std::string s) |
| void | AddFailure (std::unordered_map< std::string, std::string > &failures, const QString &testName, const QString &message) |
| bool | ReadXunitFailures (const fs::path &path, std::unordered_map< std::string, std::string > &failures) |
xunit.xml: <testcase name=…> holding <failure message=…> / <error message=…>. | |
| void | ReadOutputXmlFailures (const fs::path &path, std::unordered_map< std::string, std::string > &failures) |
Variables | |
| constexpr int | kMaxHeaderLines = 64 |
| constexpr std::streamoff | kTailBytes = 64 * 1024 |
| constexpr std::string_view | kUtf8Bom = "\xEF\xBB\xBF" |
| using analyzer::anonymous_namespace{TestRunIndex.cpp}::Metadata = typedef db::EventsContainer::FileMetadata |
| void analyzer::anonymous_namespace{TestRunIndex.cpp}::AddFailure | ( | std::unordered_map< std::string, std::string > & | failures, |
| const QString & | testName, | ||
| const QString & | message | ||
| ) |


| std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::EventTimestamp | ( | std::string_view | line | ) |


| std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::Field | ( | const db::LogEvent::EventItems & | items, |
| std::string_view | key | ||
| ) |


| std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::FileTestName | ( | const fs::path & | file | ) |


| std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::LastEventTimestamp | ( | const fs::path & | file | ) |
Timestamp of the last event line, read from the end of the file.


| Metadata analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadHeader | ( | std::istream & | in, |
| std::string & | firstDataLine | ||
| ) |
Reads the # header block of in; firstDataLine receives the first line after it (empty at end of file). The lines are decoded by SapiLogParser, so the keys match a loaded log's file metadata.


| void analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadOutputXmlFailures | ( | const fs::path & | path, |
| std::unordered_map< std::string, std::string > & | failures | ||
| ) |
output.xml: the text of the FAIL <status> that is a direct child of a <test name=…> (keyword statuses are nested deeper).


| bool analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadXunitFailures | ( | const fs::path & | path, |
| std::unordered_map< std::string, std::string > & | failures | ||
| ) |
xunit.xml: <testcase name=…> holding <failure message=…> / <error message=…>.


| std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::ToUpper | ( | std::string | s | ) |
| std::string_view analyzer::anonymous_namespace{TestRunIndex.cpp}::Trim | ( | std::string_view | s | ) |
|
constexpr |
|
constexpr |
|
constexpr |