MCPcopy Create free account
hub / github.com/bcndev/bytecoin / FileLogger

Method FileLogger

src/logging/FileLogger.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace logging {
11
12FileLogger::FileLogger(const std::string &fullfilenamenoext, size_t max_size, Level level)
13 : CommonLogger(level), initial_max_size(max_size), max_size(max_size), fullfilenamenoext(fullfilenamenoext) {
14 file_stream = std::make_unique<platform::FileStream>(this->fullfilenamenoext + ".log", platform::O_OPEN_ALWAYS);
15 file_stream->seek(0, SEEK_END);
16}
17
18void FileLogger::do_log_string(const std::string &message) {
19 std::lock_guard<std::mutex> lock(mutex);

Callers

nothing calls this directly

Calls 1

seekMethod · 0.80

Tested by

no test coverage detected