10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
log.h
1#ifndef TENDUKE_LOG_LOG_H
2#define TENDUKE_LOG_LOG_H
3
4#include "./Logger.h"
5
6#include <memory>
7#include <string>
8
9namespace tenduke { namespace log {
10
15void debug(const char * message);
16
21void debug(const std::string &message);
22
27void error(const char * message);
28
33void error(const std::string &message);
34
39void info(const char * message);
40
45void info(const std::string &message);
46
51void trace(const char * message);
52
57void trace(const std::string &message);
58
63void warning(const char * message);
64
69void warning(const std::string &message);
70
75std::shared_ptr<tenduke::log::Logger> getGlobalLogger();
76
84std::shared_ptr<::tenduke::log::Logger> setGlobalLogger(const std::shared_ptr<::tenduke::log::Logger> &logger);
85
86}}
87
88#endif //TENDUKE_LOG_LOG_H
void debug(const char *message)
Write message to global logger at DEBUG-level.
Definition log.cpp:26
void warning(const char *message)
Write message to global logger at WARNING-level.
Definition log.cpp:66
std::shared_ptr<::tenduke::log::Logger > setGlobalLogger(const std::shared_ptr<::tenduke::log::Logger > &logger)
Sets the global logger.
std::shared_ptr< tenduke::log::Logger > getGlobalLogger()
Returns the global logger.
Definition log.cpp:12
void trace(const char *message)
Write message to global logger at TRACE-level.
Definition log.cpp:56
void info(const char *message)
Write message to global logger at INFO-level.
Definition log.cpp:46
void error(const char *message)
Write message to global logger at ERROR-level.
Definition log.cpp:36
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4