|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Demonstrates writer_builder usage patterns. More...
#include <kcenon/logger/builders/writer_builder.h>#include <kcenon/logger/core/logger.h>#include <kcenon/logger/interfaces/log_filter_interface.h>#include <kcenon/logger/writers/async_writer.h>#include <iostream>#include <memory>
Go to the source code of this file.
Classes | |
| class | level_filter |
| Custom filter that only allows specific log levels. More... | |
Functions | |
| void | example_basic_file_writer () |
| Example 1: Basic file writer. | |
| void | example_async_buffered_file () |
| Example 2: Async + Buffered File Writer. | |
| void | example_filtered_console () |
| Example 3: Console Writer with Filtering. | |
| void | example_production_setup () |
| Example 5: Production Setup with Multiple Writers. | |
| void | example_builder_vs_manual () |
| Example 6: Comparing Builder vs Manual Composition. | |
| int | main () |
Demonstrates writer_builder usage patterns.
Definition in file writer_builder_example.cpp.
| void example_async_buffered_file | ( | ) |
Example 2: Async + Buffered File Writer.
High-performance setup combining buffering and async writing.
Definition at line 77 of file writer_builder_example.cpp.
Referenced by main().

| void example_basic_file_writer | ( | ) |
Example 1: Basic file writer.
The simplest usage - just a file writer with no decorators.
Definition at line 60 of file writer_builder_example.cpp.
Referenced by main().

| void example_builder_vs_manual | ( | ) |
Example 6: Comparing Builder vs Manual Composition.
Shows the difference between using the builder and manual nesting.
Definition at line 218 of file writer_builder_example.cpp.
Referenced by main().

| void example_filtered_console | ( | ) |
Example 3: Console Writer with Filtering.
Console writer that only logs warnings and errors.
Definition at line 103 of file writer_builder_example.cpp.
Referenced by main().

| void example_production_setup | ( | ) |
Example 5: Production Setup with Multiple Writers.
Realistic production scenario with multiple log destinations:
Definition at line 162 of file writer_builder_example.cpp.
References kcenon::logger::logger::add_writer(), kcenon::logger::logger::flush(), and kcenon::logger::logger::log().
Referenced by main().


| int main | ( | ) |
Definition at line 256 of file writer_builder_example.cpp.
References example_async_buffered_file(), example_basic_file_writer(), example_builder_vs_manual(), example_filtered_console(), and example_production_setup().
