quill
Static Public Attributes | List of all members
CustomFrontendOptions Struct Reference

This example demonstrates how to change the type of the Single Producer Single Consumer (SPSC) queue used by the frontend. More...

Inheritance diagram for CustomFrontendOptions:
Inheritance graph
[legend]
Collaboration diagram for CustomFrontendOptions:
Collaboration graph
[legend]

Static Public Attributes

static constexpr quill::QueueType queue_type = quill::QueueType::BoundedDropping
 
static constexpr size_t initial_queue_capacity = 256
 
static constexpr size_t unbounded_queue_max_capacity = 2ull * 1024 * 1024 * 1024
 

Detailed Description

This example demonstrates how to change the type of the Single Producer Single Consumer (SPSC) queue used by the frontend.

This example demonstrates defining and utilizing custom FrontendOptions.

By default, the library uses an UnboundedBlocking queue, which starts small with initial_queue_capacity and grows as needed.

This example switches to a bounded dropping queue so the frontend never blocks and excess log messages are dropped once the queue is full. Create custom frontend options.

It's useful when you need to modify the queue type or capacity. FrontendOptions are compile-time options and must be passed as a template argument.


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