Added OPEN_LOG and CLOSE_LOG macros

Signed-off-by: Shahbaz <ShabbyX@gmail.com>