mirror of
https://gitlab.com/niansa/SomeBot.git
synced 2025-03-06 20:48:26 +01:00
Changed cout log format a bit
This commit is contained in:
parent
de7a101a21
commit
28a97e5b8b
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -331,7 +331,7 @@ int main(int argc, char **argv) {
|
|||
bot.cluster.on_log([&](const dpp::log_t& event) {
|
||||
auto t = std::time(nullptr);
|
||||
logfile << "(" << std::put_time(std::localtime(&t), "%Y-%m-%d %H:%M:%S") << ") [" << dpp::utility::loglevel(event.severity) << "]: " << event.message << std::endl;
|
||||
std::cout << "(" << std::put_time(std::localtime(&t), "%Y-%m-%d %H:%M:%S") << ") [" << dpp::utility::loglevel(event.severity) << "]: <" << bot.config.id << "> " << event.message << std::endl;
|
||||
std::cout << "(" << std::put_time(std::localtime(&t), "%Y-%m-%d %H:%M:%S") << ") [" << bot.config.id << "/" << dpp::utility::loglevel(event.severity) << "]: " << event.message << std::endl;
|
||||
});
|
||||
bot.config.reregister_commands = argc == 2;
|
||||
bot.add_property("main_all_instances", &instances, instances_mutex);
|
||||
|
|
Loading…
Add table
Reference in a new issue