Add drlog_context.cpp
Support RBN THRESHOLD