Skip to content
Snippets Groups Projects

Better Error Handling and Logging

Merged Timm Fitschen requested to merge dev into main
All threads resolved!
5 files
+ 52
58
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 38
0
/*
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifndef CAOSDB_LOG_LEVEL_H
#define CAOSDB_LOG_LEVEL_H
#define CAOSDB_LOG_LEVEL_OFF 1000000
#define CAOSDB_LOG_LEVEL_FATAL 700
#define CAOSDB_LOG_LEVEL_ERROR 600
#define CAOSDB_LOG_LEVEL_WARN 500
#define CAOSDB_LOG_LEVEL_INFO 400
#define CAOSDB_LOG_LEVEL_DEBUG 300
#define CAOSDB_LOG_LEVEL_TRACE 200
#define CAOSDB_LOG_LEVEL_ALL 0
#ifndef CAOSDB_DEFAULT_LOG_LEVEL
#define CAOSDB_DEFAULT_LOG_LEVEL CAOSDB_LOG_LEVEL_ERROR
#endif
#endif
Loading