Fixed potential logging bugs

Removed set_severity_threshold() and set_date_format, reversed the
level numbers, added APP_LOGGING_LEVEL_THRESHOLD