...
...
Table of Contents |
---|
Logging from C
RIC provides a C library for logging: mdclog.
...
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"}} |
...