Skip to content

Commit 07aa4e2

Browse files
committed
logging: adjust easylogging API
easylogging introduced an API change in v9.79
1 parent 3511508 commit 07aa4e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/pfasst/logging.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ const string OUT::reset = "\033[0m";
4242
#include "config.hpp"
4343

4444
// enable easy logging of STL containers
45-
#define _ELPP_STL_LOGGING
45+
#define ELPP_STL_LOGGING
4646
// disable creation of default log file
47-
#define _ELPP_NO_DEFAULT_LOG_FILE
47+
#define ELPP_NO_DEFAULT_LOG_FILE
4848
// enable passing `--logging-flags` via command line
49-
#define _ELPP_LOGGING_FLAGS_FROM_ARG
49+
#define ELPP_LOGGING_FLAGS_FROM_ARG
5050

5151
#ifndef NDEBUG
52-
#define _ELPP_DEBUG_ASSERT_FAILURE
53-
#define _ELPP_STACKTRACE_ON_CRASH
52+
#define ELPP_DEBUG_ASSERT_FAILURE
53+
#define ELPP_STACKTRACE_ON_CRASH
5454
#endif
5555

5656
#ifdef PFASST_NO_LOGGING
57-
#define _ELPP_DISABLE_LOGS
57+
#define ELPP_DISABLE_LOGS
5858
#endif
5959

6060
#include <pfasst/easylogging++.h>
@@ -63,7 +63,7 @@ const string OUT::reset = "\033[0m";
6363
#ifndef PFASST_LOGGER_INITIALIZED
6464
// initialize easyloggingpp
6565
// FIXME: this might already be called by code using PFASST++
66-
_INITIALIZE_EASYLOGGINGPP
66+
INITIALIZE_EASYLOGGINGPP
6767
/**
6868
* guard symbol to ensure easylogging++ is only initialized once
6969
*
@@ -255,7 +255,7 @@ namespace pfasst
255255
*/
256256
inline static void start_log(int argc, char** argv)
257257
{
258-
_START_EASYLOGGINGPP(argc, argv);
258+
START_EASYLOGGINGPP(argc, argv);
259259
set_logging_flags();
260260
load_default_config();
261261
pfasst::log::stack_position = 0;

0 commit comments

Comments
 (0)