Backend Options

The backend options allow you to customize the behavior of the backend thread and are applied at runtime. To utilize these options, you need to create an object and pass it when starting the backend thread. Most options come with default values, but they can be tailored to meet the specific needs of your application. Refer to BackendOptions for detailed information.

For example, to pin the backend worker thread to a specific CPU, you can use the following code:

quill::BackendOptions backend_options;
backend_options.cpu_affinity = 5;
quill::Backend::start(backend_options);