Implemented logger_debug and logger_error functions.