LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
util Namespace Reference

Utility components and helper types for the LogViewer application. More...

Namespaces

namespace  portable
 

Classes

class  ILogger
 Interface for logging implementations. More...
 
class  KeyEncryption
 Simple API key encryption/decryption utility. More...
 
class  Logger
 Application-wide logging singleton. More...
 
class  Result
 
class  Result< void, E >
 
class  SpdLogger
 spdlog-based implementation of ILogger More...
 

Concepts

concept  Constructible
 Matches types that can be constructed from the given arguments.
 
concept  EventItemsLike
 Matches types that behave like LogEvent's EventItems collection.
 
concept  Comparable
 Matches types that can be compared for equality.
 
concept  Hashable
 Matches types that can be used as hash map keys.
 
concept  Orderable
 Matches types that support ordering operations.
 
concept  HasToString
 Matches types that provide a to_string() method.
 

Enumerations

enum class  LogLevel {
  Trace , Debug , Info , Warning ,
  Error , Critical , Off
}
 Logging severity levels. More...
 

Functions

static std::string Base64Encode (const std::string &input)
 
static std::string Base64Decode (const std::string &input)
 

Variables

static constexpr const char * ENCODED_PREFIX = "B64:"
 
static const char kBase64Chars []
 

Detailed Description

Utility components and helper types for the LogViewer application.

Enumeration Type Documentation

◆ LogLevel

enum class util::LogLevel
strong

Logging severity levels.

Enumerator
Trace 

Very detailed debug information.

Debug 

Detailed debug information for development.

Info 

General information about application flow.

Warning 

Warning messages for potential issues.

Error 

Error messages for failures.

Critical 

Critical errors that may cause termination.

Off 

Disable all logging.

Function Documentation

◆ Base64Decode()

static std::string util::Base64Decode ( const std::string &  input)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Base64Encode()

static std::string util::Base64Encode ( const std::string &  input)
static
Here is the caller graph for this function:

Variable Documentation

◆ ENCODED_PREFIX

constexpr const char* util::ENCODED_PREFIX = "B64:"
staticconstexpr

◆ kBase64Chars

const char util::kBase64Chars[]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"