0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd::ios: Add logging facility for subsystem.

This commit is contained in:
Jason Volk 2020-12-07 11:19:33 -08:00
parent 2b6bb16bf4
commit e0a64b47ee
2 changed files with 8 additions and 0 deletions

View file

@ -43,6 +43,7 @@ namespace ircd::ios
struct defer;
struct post;
extern log::log log;
extern std::thread::id main_thread_id;
extern asio::executor user;
extern asio::executor main;

View file

@ -8,6 +8,13 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
/// Logging facility
decltype(ircd::ios::log)
ircd::ios::log
{
"ios"
};
/// "main" thread for IRCd; the one the main context landed on.
decltype(ircd::ios::main_thread_id)
ircd::ios::main_thread_id;