ASIO Client Server Framework
Loading...
Searching...
No Matches
acsf::LoggerConfig Struct Reference

Logging settings passed to acsf::Server and acsf::Client. More...

#include <logger.h>

Public Attributes

bool enabled = false
std::filesystem::path folder = "LOG_FOLDER"
std::uintmax_t maxFileSize = MAX_LOG_FILE_SIZE

Detailed Description

Logging settings passed to acsf::Server and acsf::Client.

cfg.enabled = true;
cfg.folder = "my_logs";
acsf::Server server(15555, []{}, true, false, cfg);
A TCP server that accepts many clients and exchanges length-prefixed messages with them.
Definition server.h:31
Logging settings passed to acsf::Server and acsf::Client.
Definition logger.h:118
std::filesystem::path folder
Definition logger.h:123
bool enabled
Definition logger.h:120
Examples
main_example.cpp.

Member Data Documentation

◆ enabled

bool acsf::LoggerConfig::enabled = false

Turns logging on. Off by default.

Examples
main_example.cpp.

◆ folder

std::filesystem::path acsf::LoggerConfig::folder = "LOG_FOLDER"

Folder the log files are written to. Created if missing.

Examples
main_example.cpp.

◆ maxFileSize

std::uintmax_t acsf::LoggerConfig::maxFileSize = MAX_LOG_FILE_SIZE

Size in bytes at which a new log file is started. Defaults to MAX_LOG_FILE_SIZE.


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