MCPcopy Create free account
hub / github.com/crossuo/crossuo / LogInit

Function LogInit

common/logging/logging.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void LogInit(int argc, char *argv[], const char *filename)
43{
44 loguru::g_stderr_verbosity = 1;
45 loguru::init(argc, argv);
46 loguru::add_file(filename, loguru::Truncate, loguru::Verbosity_INFO);
47 loguru::g_preamble_date = false;
48 loguru::g_preamble_time = false;
49
50#define LOG_SYSTEM(id, name) LOG_DEFINE_SYSTEM(name)
51#include "loggers.h"
52#undef LOG_SYSTEM
53}
54
55void LogHexBuffer(eLogSystem sys, int level, const char *title, uint8_t *buf, int size)
56{

Callers 1

mainFunction · 0.85

Calls 2

add_fileFunction · 0.85
initFunction · 0.50

Tested by

no test coverage detected