1
- # ** Using monilogger in your C++ app**
1
+ # Using monilogger in your C++ app
2
2
3
- ## ** Defining the execution events**
3
+ ## Defining the execution events
4
4
5
5
``` cpp
6
6
MoniLogger::register_base_events ({
@@ -13,7 +13,7 @@ MoniLogger::register_base_events({
13
13
MoniLogger::register_composite_event("SomeCompositeEvent", {"SomeEvent", "SomeOtherEvent"});
14
14
```
15
15
16
- ## ** Defining the exposed execution context**
16
+ ## Defining the exposed execution context
17
17
18
18
``` cpp
19
19
struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
@@ -27,7 +27,7 @@ struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
27
27
};
28
28
```
29
29
30
- ### ** Exposing local variables**
30
+ ### Exposing local variables
31
31
32
32
``` cpp
33
33
struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
@@ -41,7 +41,7 @@ struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
41
41
};
42
42
```
43
43
44
- ### ** Exposing class members**
44
+ ### Exposing class members
45
45
46
46
``` cpp
47
47
struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
@@ -60,7 +60,7 @@ struct MyExecutionContext : MoniLogger::MoniLoggerExecutionContext
60
60
};
61
61
```
62
62
63
- ### ** Exposing the context as a Python class**
63
+ ### Exposing the context as a Python class
64
64
65
65
```cpp
66
66
// Initialization function for the interface module.
@@ -106,6 +106,11 @@ std::function<void (pybind11::module_, pybind11::object)> interface_module_initi
106
106
// ...
107
107
```
108
108
109
+ ## Starting the Python interpreter and initializing monilogger
110
+
111
+ ``` cpp
112
+ MoniLogger::initialize_monilogger (python_path, python_scripts, interface_module, interface_module_initializer);
113
+ ```
109
114
110
115
## Triggering execution events
111
116
0 commit comments