0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-01 03:18:54 +01:00
Commit graph

55 commits

Author SHA1 Message Date
Jason Volk
ea40dcc56b Fix undef var templates for explicit instantiations across units (-Wundefined-var-template). 2023-02-04 13:20:44 -08:00
Jason Volk
a945137eff ircd::log: Cold section log::critical constructions. 2022-07-26 15:46:09 -07:00
Jason Volk
bf3fa0a122 ircd::log: Propagate noexcept to interface vlog(). 2020-12-09 02:16:50 -08:00
Jason Volk
e57ae30791 ircd::logger: Remove noreturn attribute. 2020-04-22 01:51:55 -07:00
Jason Volk
c4f294810c ircd::log: Remove duplicate condition for __assert_fail. 2020-02-10 18:54:59 -08:00
Jason Volk
ac4e742010 ircd::log: Convert to hook architecture. 2019-08-03 18:36:42 -07:00
Jason Volk
fa341c274e ircd::log: Add some minor comments / document. 2019-08-03 16:11:14 -07:00
Jason Volk
839951752e ircd::log: Improve critical trap message. 2019-07-26 15:15:58 -07:00
Jason Volk
58b286e651 ircd::log: Make the level enumeration strictly unsigned.
modules/console: Fix sign v. unsign comparison.
2019-07-19 18:17:52 -07:00
Jason Volk
0704625401 ircd::log: Simplify log class member interface. 2019-07-19 17:15:47 -07:00
Jason Volk
064f0b712c ircd::log: Fixes for clang DCE. 2019-07-19 17:10:35 -07:00
Jason Volk
9d48215aaa ircd: Explicit instance_list destructor template instantiations for clang. 2019-06-24 01:33:00 -06:00
Jason Volk
25680a8ed2 ircd: Move smalldate() to date.h from logger unit. 2019-04-17 19:27:26 -07:00
Jason Volk
ecf8465d36 ircd::log: Change some widths into consts; various reorg. 2019-04-05 14:38:50 -07:00
Jason Volk
ede2439a55 ircd: Add support for configurable soft-assertions. 2019-03-15 16:19:05 -07:00
Jason Volk
077f8bb546 ircd::logger: Add conf items to control the log mask. 2019-03-09 17:10:49 -08:00
Jason Volk
6cc17887de ircd::log: Add interface for file mask / unmask; fix constness. 2019-03-09 16:43:27 -08:00
Jason Volk
cbf456a388 ircd: Rename and refactor ircd::assertion interface into ircd::panic. 2019-01-13 16:37:31 -08:00
Jason Volk
5a0a9989e4 ircd::log: Rename facility to level. 2018-12-19 12:52:08 -08:00
Jason Volk
76ac576f53 ircd::log: Improve reflection related; add reverse reflection. 2018-12-12 08:47:13 -08:00
Jason Volk
19f1929b1f ircd::log: Use string_view for format string arguments. 2018-12-10 13:02:17 -08:00
Jason Volk
3f939367c0 ircd::log: Add console_enable/disable for all facilities. 2018-12-05 19:00:10 -08:00
Jason Volk
a2b80db1ad configure.ac/ircd: Add granular configure-time log level control. 2018-05-21 16:59:28 -07:00
Jason Volk
fcb1df34da ircd::log: Re-number log levels. 2018-05-21 16:14:59 -07:00
Jason Volk
48c38f4282 ircd::log: Add logf to complement vlog. 2018-04-23 17:44:49 -07:00
Jason Volk
2e3e8bc0d5 ircd::log: Add masking by name; various improvements. 2018-04-23 17:20:00 -07:00
Jason Volk
ca138a4338 ircd::log: Give log::log the instance list w/ construction checks. 2018-04-23 17:20:00 -07:00
Jason Volk
c30531a77e ircd::log: Allow specifying named logger as first param to the extern facilities. 2018-04-23 17:20:00 -07:00
Jason Volk
d2eda8a4bf ircd::log: #ifdef over the full structure. 2018-04-23 17:20:00 -07:00
Jason Volk
27ff5e9be1 ircd::log: Objectify mark / vlog related. 2018-04-23 17:20:00 -07:00
Jason Volk
e598a27d7a ircd::log: Use string_view for named log instance due to dominant use-case. 2018-04-23 17:20:00 -07:00
Jason Volk
88f5937559 ircd::log: Update the log::mark() argument to use string_view. 2018-04-20 15:22:50 -07:00
Jason Volk
e81908d1f8 ircd::log: Fix DCE not eliminating template parameter packs. 2018-03-24 14:55:53 -07:00
Jason Volk
bd60c2cd80 ircd::log: Add two new log facilities; comments on facilities. 2018-03-15 22:25:16 -07:00
Jason Volk
d50ef4b45f ircd::log: Add interface to toggle facility to console. 2018-02-21 16:13:49 -08:00
Jason Volk
be624ca7f6 Update Copyrastafaris. 2018-02-05 21:24:34 -08:00
Jason Volk
5133553359 ircd::log: Bring balance to the syntax (global logger only). 2018-01-22 00:54:51 -08:00
Jason Volk
0be93870ea ircd::log: Address any logger reentrancy; various cleanup. 2017-10-17 00:41:10 -07:00
Jason Volk
d98abc9b17 ircd::log: Add #ifdef's around debug functions and hope for DCE on production builds... 2017-10-11 18:18:18 -07:00
Jason Volk
54d6793f59 Update various documentation and comments. 2017-09-24 18:16:33 -07:00
Jason Volk
d9a4f06bf6 ircd: Employ namespace scope extensions from c++1z/gnu++14.
This is not a move to c++17. If the compiler happens to have support
for c++17 namespace scope resolution, they have been kind enough to
backport it to gnu++14. This limits our support for really old c++14
compilers, but that was limited anyway. GCC 6.1 and clang 3.6 tested.
2017-09-08 03:47:46 -07:00
Jason Volk
a0e7002dde ircd::log: Drop in ircd::fmt. 2017-03-17 20:24:25 -07:00
Jason Volk
c9ddf4f6ab ircd: Add lex_cast wrapper interface; various cleanup. 2017-03-14 15:03:15 -07:00
Jason Volk
b592b69b86 What is the Matrix? Control. 2017-03-10 17:51:18 -08:00
Jason Volk
8554fc858b ircd::log: Add function to logger with facility argument. 2016-11-25 19:23:47 -08:00
Jason Volk
88a15924ed ircd::log: Add console_quiet to suppress log messages to console. 2016-09-09 16:17:36 -07:00
Jason Volk
127378b57c Refactor logger. 2016-09-09 16:17:00 -07:00
Jason Volk
dd9124b687 Preliminary Client refactor.
Add client to ircd::client:: namespace.

Also move former struct User and struct Server into client.cc as
opaque structure demo.
2016-08-22 15:56:12 -07:00
Jason Volk
61b517ca3c Precompile and remove most include directives. Notes:
* To benefit from the precompiled-header (PCH) it MUST provide "the first C token."

Advantages:
Never worry about the include stack again. Remember, this means one less thing
for random module developers, community people learning C++, and new developers
to deal with. It should reduce the learning curve and barrier for participation.

Disadvantages:
Makes overall compilation a bit slower, especially without any additional
work to improve it again. There are several opportunities, places where the
PCH is probably being ignored, etc that can be addressed.
2016-08-20 19:30:33 -07:00
Jason Volk
a71a4551ae ircd: Insert into ircd:: namespace. 2016-08-13 02:43:42 -07:00