Logging facility for telegram-bot-api, see also: tgbot::methods::Api::getLogger()
More...
#include <logger.h>
Logging facility for telegram-bot-api, see also: tgbot::methods::Api::getLogger()
void tgbot::Logger::error |
( |
std::string const & |
logError | ) |
const |
log some error...
- Parameters
-
void tgbot::Logger::info |
( |
std::string const & |
logInfo | ) |
const |
log some info...
- Parameters
-
tgbot::Logger::operator bool |
( |
| ) |
const |
|
explicit |
checks for failbit
- Returns
- is failbit enabled on the ostream?
void tgbot::Logger::setDateFormat |
( |
std::string & |
newDateFormat | ) |
|
|
inline |
set new date format, default is: "%Y/%m/%d %H:%M:%S"
- Parameters
-
newDateFormat | your new date format |
void tgbot::Logger::setStream |
( |
std::ostream & |
newStream | ) |
|
|
inline |
set new stream
- Parameters
-
newStream | : your new stream (might be std::cout, std::cerr, an std::ofstream or whatever...) |
The documentation for this class was generated from the following file: