26#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_LOGGING_H_
27#define ELEMENTSKERNEL_ELEMENTSKERNEL_LOGGING_H_
32#include <log4cpp/Category.hh>
33#include <log4cpp/Priority.hh>
137 static void setLogFile(
const Path::Item& fileName);
150 template <
typename... Args>
151 void debug(
const char* stringFormat, Args&&... args);
171 template <
typename... Args>
172 void info(
const char* stringFormat, Args&&... args);
192 template <
typename... Args>
193 void warn(
const char* stringFormat, Args&&... args);
213 template <
typename... Args>
214 void error(
const char* stringFormat, Args&&... args);
234 template <
typename... Args>
235 void fatal(
const char* stringFormat, Args&&... args);
249 void log(log4cpp::Priority::Value level,
const std::string& logMessage);
257 template <
typename... Args>
258 void log(log4cpp::Priority::Value level,
const char* stringFormat, Args&&... args);
261 explicit Logging(log4cpp::Category& log4cppLogger);
287 template <
typename T>
299#define ELEMENTSKERNEL_ELEMENTSKERNEL_LOGGING_IMPL_
301#undef ELEMENTSKERNEL_ELEMENTSKERNEL_LOGGING_IMPL_
defines the macros to be used for explicit export of the symbols
implementation of the templates declared in ElementsKernel/Logging.h
provide functions to retrieve resources pointed by environment variables
A helper class for logging messages using the "<<" operator.
LogMessageStream(log4cpp::Category &logger, P_log_func log_func)
LogMessageStream & operator<<(const T &m)
void(log4cpp::Category::*)(const std::string &) P_log_func
log4cpp::Category & m_logger
std::stringstream m_message
void error(const std::string &logMessage)
void debug(const std::string &logMessage)
void log(log4cpp::Priority::Value level, const char *stringFormat, Args &&... args)
static Logging getLogger(const std::string &name="")
void warn(const std::string &logMessage)
static void setLogFile(const Path::Item &fileName)
Sets the file to store the log messages.
static void setLevel(std::string level)
Sets the global message level.
log4cpp::Category & m_log4cppLogger
void log(log4cpp::Priority::Value level, const std::string &logMessage)
void fatal(const char *stringFormat, Args &&... args)
void warn(const char *stringFormat, Args &&... args)
void debug(const char *stringFormat, Args &&... args)
Logging(log4cpp::Category &log4cppLogger)
void fatal(const std::string &logMessage)
void error(const char *stringFormat, Args &&... args)
void info(const std::string &logMessage)
void info(const char *stringFormat, Args &&... args)
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.