SUNphi  1.0
MinimalLogger.hpp
Go to the documentation of this file.
1 #ifndef _MINIMALLOGGER_HPP
2 #define _MINIMALLOGGER_HPP
3 
4 /// \file MinimalLogger.hpp
5 ///
6 /// \brief Minimal version of the logger
7 ///
8 /// This file can be included in place of Logger.hpp, in case the
9 /// former cannot be included due to missing requirements, e.g. in
10 /// presence of routine from which the actual logger depends, such as
11 /// threads or MPI. The actual logger is called in the cpp file
12 
13 namespace SUNphi
14 {
15  class Logger;
16 
17  extern Logger runLog;
18 
19  /// Wraps the actual logger through the old-style C variadic function
20  ///
21  /// We cannot use variadic template version here, as the logger cannot be called directly here, since "Logger.hpp" is expected
22  void minimalLogger(Logger& logger, ///< Logger to be used
23  const char* format, ///< Formatting string
24  ...);
25 }
26 
27 #endif
void minimalLogger(Logger &logger, const char *format,...)
Definition: SUNphi.cpp:40
Logger runLog("/dev/stdout")
Global logger.
decltype(auto) file(Ts &&...ts)
Definition: Logger.hpp:49