CppTrail
Loading...
Searching...
No Matches
ostream_logger.h File Reference

Synchronous ostream-based logger implementation for the CppTrail framework. More...

#include "rfc3339.h"
#include <iostream>
#include "cpptrail/logger.h"
Include dependency graph for ostream_logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CppTrail::BasicSyncOstreamLogger< char_t >
 A synchronous logger handle that directs output to a C++ standard output stream. More...
 
class  CppTrail::SyncCoutLogger
 A specialized logger handle targeting the standard output stream (std::cout). More...
 
class  CppTrail::SyncCerrLogger
 A specialized logger handle targeting the standard error stream (std::cerr). More...
 
class  CppTrail::BasicAsyncOstreamLogger< char_t >
 An asynchronous logger handle that dispatches output to a C++ standard stream. More...
 
class  CppTrail::AsyncCoutLogger
 A specialized asynchronous logger handle targeting the standard output stream (std::cout). More...
 
class  CppTrail::AsyncCerrLogger
 A specialized asynchronous logger handle targeting the standard error stream (std::cerr). More...
 

Namespaces

namespace  CppTrail
 Root namespace for the CppTrail logging library.
 

Typedefs

OstreamLogger Type Aliases

Standardized aliases for common character encodings.

using CppTrail::SyncOstreamLogger = BasicSyncOstreamLogger< char >
 Standard char-based OstreamLogger (ASCII/UTF-8).
 
using CppTrail::wSyncOstreamLogger = BasicSyncOstreamLogger< wchar_t >
 Wide-character OstreamLogger (Platform dependent, typically UTF-16 on Windows).
 
using CppTrail::u8SyncOstreamLogger = BasicSyncOstreamLogger< char8_t >
 Explicit UTF-8 OstreamLogger using C++20 char8_t.
 
using CppTrail::u16SyncOstreamLogger = BasicSyncOstreamLogger< char16_t >
 UTF-16 OstreamLogger using char16_t.
 
using CppTrail::u32SyncOstreamLogger = BasicSyncOstreamLogger< char32_t >
 UTF-32 OstreamLogger using char32_t.
 
AsyncOstreamLogger Type Aliases

Standardized aliases for common character encodings.

using CppTrail::AsyncOstreamLogger = BasicAsyncOstreamLogger< char >
 Standard char-based AsyncOstreamLogger (ASCII/UTF-8).
 
using CppTrail::wAsyncOstreamLogger = BasicAsyncOstreamLogger< wchar_t >
 Wide-character AsyncOstreamLogger (Platform dependent, typically UTF-16 on Windows).
 
using CppTrail::u8AsyncOstreamLogger = BasicAsyncOstreamLogger< char8_t >
 Explicit UTF-8 AsyncOstreamLogger using C++20 char8_t.
 
using CppTrail::u16AsyncOstreamLogger = BasicAsyncOstreamLogger< char16_t >
 UTF-16 AsyncOstreamLogger using char16_t.
 
using CppTrail::u32AsyncOstreamLogger = BasicAsyncOstreamLogger< char32_t >
 UTF-32 AsyncOstreamLogger using char32_t.
 

Detailed Description

Synchronous ostream-based logger implementation for the CppTrail framework.

Provides a concrete logger that directs output to any std::ostream (console, files, stringstreams). Includes high-performance RFC 3339 timestamp formatting (UTC and Local) with sub-millisecond precision.

Author
Dante Doménech Martínez