...
...
Table of Contents |
---|
Logging from C
RIC provides a C library for logging: mdclog.
...
Example of how to use the mdclog C library from Go:
|
Logging from Python
RIC provides a Python library for logging: mdclogpy.
...
You can also install the python library using pip
|
MDC (Mapped Diagnostic Context)
...
MDC key | MDC value (type, range, list of values, format, ...) | Description | Components using the MDC | Comments |
---|---|---|---|---|
Weather | Possible values: sunny, cloudy, rainy, snowy | Weather type included in every log made by the Weather Manager. | Weather Manager xApp | This is an example. |
Temperature | Value range from -100.0 to 100.0 with one decimal. Example: 15.5 | Temperature (Celsius degrees) included in every log made by the Weather Manager. | Weather Manager xApp | This is an example. |
time | yyyy-MM-dd HH:mm:ss.SSS | Human readable timestamp. Note that the timezone can be derived from comparing this value against the ts millisecond timestamp in the same log entry. | E2 Manager | Example: {"crit":"INFO","ts":1560266556006,"id":"E2Manager","msg":"#rmrCgoApi.Init - RMR router has been initiated","mdc":{"time":"2019-06-11 15:22:36.006"}} |
...
1550045469,
INFO,
applicationABC,
This is an example log,
key1=value1 key2=value with a space
Key-value pairs (proposal for future development)
With a colon as a separator in this example. The separator could be made configurable.
...