*Example log output*
-`{"ts": 1559285893047, "crit": "INFO", "id": "myprog", "mdc": {"second key":"other value","mykey":"keyval"}, "msg": "Hello world!"}`
+`{"ts": 1603103945651, "crit": "ERROR", "id": "test.py", "mdc": {"PID":101,"SYSTEM_NAME": "Cloud-Space", "HOST_NAME": "master", "SERVICE_NAME": "TestApp", "CONTAINER_NAME": "", "POD_NAME": ""}, "msg": "Hello World!"}`
+
Install
-------
```python
import mdclogpy
+ mdclogpy.mdclog_format_init(configmap_monitor=True)
mdclogpy.error("This is an error log")
```
```python
from mdclogpy import Logger
my_logger = Logger()
+ my_logger.mdclog_format_init(configmap_monitor=True)
my_logger.error("This is an error log")
```
A program can create several logger instances.
+mdclog_format_init() Adds the MDC log format with HostName, PodName, ContainerName, ServiceName,PID,CallbackNotifyforLogFieldChange
+
+Pass configmap_monitor = False in mdclog_format_init() function to stop dynamic log level change based on configmap.
+
Mapped Diagnostics Context
--------------------------
See the License for the specific language governing permissions and
limitations under the License.
+This source code is part of the near-RT RIC (RAN Intelligent Controller)
+platform project (RICP).
Unit testing
------------