Implemented log level check before each log call (for debug and trace)