MCPcopy Create free account
hub / github.com/bloomberg/pystack / LOG

Class LOG

src/pystack/_pystack/logging.h:20–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18logWithPython(const std::string& message, int level);
19
20class LOG
21{
22 public:
23 // Constructors
24 LOG()
25 : msgLevel(INFO){};
26
27 explicit LOG(logLevel type)
28 {
29 msgLevel = type;
30 };
31
32 // Destructors
33 ~LOG()
34 {
35 logWithPython(buffer.str(), msgLevel);
36 };
37
38 // Operators
39 template<typename T>
40 LOG& operator<<(const T& msg)
41 {
42 buffer << msg;
43 return *this;
44 };
45
46 private:
47 // Data members
48 std::ostringstream buffer;
49 logLevel msgLevel = DEBUG;
50};
51
52void
53initializePythonLoggerInterface();

Callers 15

FrameObjectMethod · 0.85
getCodeMethod · 0.85
resolveLocalVariablesMethod · 0.85
formatSequenceFunction · 0.85
TupleObjectMethod · 0.85
ListObjectMethod · 0.85
getDictEntriesFunction · 0.85
toStringMethod · 0.85
ObjectMethod · 0.85
toConcreteObjectMethod · 0.85
pystack_find_elfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected