/usr/include/sopt/logging.h is in libsopt-dev 2.0.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #ifndef SOPT_LOGGING_H
#define SOPT_LOGGING_H
#include "sopt/config.h"
#ifdef SOPT_DO_LOGGING
#include "sopt/logging.enabled.h"
#else
#include "sopt/logging.disabled.h"
#endif
//! \macro Normal but significant condition or critical error
#define SOPT_NOTICE(...) SOPT_LOG_(, critical, __VA_ARGS__)
//! \macro Something is definitely wrong, algorithm exits
#define SOPT_ERROR(...) SOPT_LOG_(, error, __VA_ARGS__)
//! \macro Something might be going wrong
#define SOPT_WARN(...) SOPT_LOG_(, warn, __VA_ARGS__)
//! \macro Verbose informational message about normal condition
#define SOPT_INFO(...) SOPT_LOG_(, info, __VA_ARGS__)
//! \macro Output some debugging
#define SOPT_DEBUG(...) SOPT_LOG_(, debug, __VA_ARGS__)
//! \macro Output internal values of no interest to anyone
//! \details Except maybe when debugging.
#define SOPT_TRACE(...) SOPT_LOG_(, trace, __VA_ARGS__)
//! High priority message
#define SOPT_HIGH_LOG(...) SOPT_LOG_(, critical, __VA_ARGS__)
//! Medium priority message
#define SOPT_MEDIUM_LOG(...) SOPT_LOG_(, info, __VA_ARGS__)
//! Low priority message
#define SOPT_LOW_LOG(...) SOPT_LOG_(, debug, __VA_ARGS__)
#endif
|