Adbase
Adinf C++ base library V2
|
#include <AsyncLogging.hpp>
Public Member Functions | |
AsyncLogging (const std::string &basename, size_t rollSize, int flushInterval=3) | |
AsyncLogging (const AsyncLogging &)=delete | |
void | operator= (const AsyncLogging &)=delete |
~AsyncLogging () | |
void | append (const char *logline, int len) |
void | start () |
void | stop () |
Static Public Member Functions | |
static void | deleteThread (std::thread *t) |
Definition at line 19 of file AsyncLogging.hpp.
adbase::AsyncLogging::AsyncLogging | ( | const std::string & | basename, |
size_t | rollSize, | ||
int | flushInterval = 3 |
||
) |
Definition at line 7 of file AsyncLogging.cpp.
|
delete |
|
inline |
Definition at line 27 of file AsyncLogging.hpp.
void adbase::AsyncLogging::append | ( | const char * | logline, |
int | len | ||
) |
Definition at line 26 of file AsyncLogging.cpp.
References adbase::LogFile::append(), adbase::LogFile::flush(), and adbase::Timestamp::now().
Referenced by adbase::http::Server::setLocationFallback(), and ~AsyncLogging().
|
static |
Definition at line 123 of file AsyncLogging.cpp.
|
delete |
void adbase::AsyncLogging::start | ( | ) |
Definition at line 114 of file AsyncLogging.cpp.
References deleteThread().
Referenced by adbase::http::Server::start(), and ~AsyncLogging().
|
inline |
Definition at line 37 of file AsyncLogging.hpp.
References deleteThread().
Referenced by ~AsyncLogging().