MDL-37658 add new logging API with basic implemenation