qxLib
Classes | Public Member Functions | Static Protected Member Functions | List of all members
qx::base_file_logger_stream Class Reference

Base class for all file logger streams. More...

#include <base_file_logger_stream.h>

Inheritance diagram for qx::base_file_logger_stream:
qx::base_logger_stream qx::file_logger_stream_fopen qx::file_logger_stream_mapping qx::file_logger_stream_ofstream

Classes

struct  config
 

Public Member Functions

 base_file_logger_stream (const config &streamConfig) noexcept
 file_logger_stream object constructor More...
 
- Public Member Functions inherited from qx::base_logger_stream
 base_logger_stream (const config &streamConfig) noexcept
 base_logger_stream object constructor More...
 
void log (const category &category, verbosity eVerbosity, string_view svMessage)
 Output to stream. More...
 
void flush ()
 Flush the stream.
 

Static Protected Member Functions

static std::filesystem::path create_folder_and_get_log_file_path (log_file_policy eLogFilePolicy, string_view svFileName) noexcept
 Create a folder (if required) and get log file path. More...
 

Detailed Description

Base class for all file logger streams.

Author
Khrapov
Date
28.07.2021

Definition at line 34 of file base_file_logger_stream.h.

Constructor & Destructor Documentation

◆ base_file_logger_stream()

qx::base_file_logger_stream::base_file_logger_stream ( const config streamConfig)
inlinenoexcept

file_logger_stream object constructor

Parameters
streamConfig- file logger configuration

Definition at line 13 of file base_file_logger_stream.inl.

Member Function Documentation

◆ create_folder_and_get_log_file_path()

std::filesystem::path qx::base_file_logger_stream::create_folder_and_get_log_file_path ( log_file_policy  eLogFilePolicy,
string_view  svFileName 
)
inlinestaticprotectednoexcept

Create a folder (if required) and get log file path.

Parameters
eLogFilePolicy- policy to use
svFileName- log file name
Return values
-log file path, empty path on error

Definition at line 18 of file base_file_logger_stream.inl.


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