24 Commits

Author SHA1 Message Date
InspIRCd Robot
cdd3226bef Update copyright headers. 2025-02-28 14:30:22 +00:00
Sadie Powell
c6238d80de Don't format log messages if we can't actually log them.
This should prevent debug messages from potentially causing
performance issues on production servers.
2025-01-11 16:51:34 +00:00
Sadie Powell
b5032fb641 Fix rawio logs not being written after a rehash. 2024-09-09 11:29:08 +01:00
InspIRCd Robot
8e784862f5 Update copyright headers. 2024-09-07 11:10:36 +01:00
Sadie Powell
d2b09b931d Close loggers and notify opers if they throw any exceptions. 2024-08-23 19:47:58 +01:00
Sadie Powell
05cea6f835 Fix formatting strings on C++20 compilers. 2024-08-22 09:41:36 +01:00
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +01:00
Sadie Powell
f73e9e606b Rename the error log level to critical.
"ERROR" is apparently defined by more than just Windows. Let's
pick a different name which is less likely to cause collisions.
2023-08-11 12:39:49 +01:00
Sadie Powell
206d31de85 Convert log calls to use fmtlib format strings 2023-01-24 00:12:57 +00:00
Sadie Powell
7edc627317 Replace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. 2023-01-23 13:07:53 +00:00
Sadie Powell
d4efd2677f Move NotifyRawIO to the Log namespace. 2023-01-22 22:52:30 +00:00
Sadie Powell
9ed53d543f Fix Cloak::Method and Log::Method being needlessly Cullable.
If a method needs to be cullable it can inherit from that type and
pass Cullable::Deleter as a custom deleter to the shared_ptr.
2023-01-18 14:57:57 +00:00
Sadie Powell
c3e42d4e5d Make some functions that don't use this static. 2023-01-11 00:56:15 +00:00
Sadie Powell
1b2916c845 Avoid copying shared_ptr<ConfigTag> when not necessary. 2023-01-10 21:27:18 +00:00
Sadie Powell
610930face Deduplicate sending the raw I/O logging warning. 2023-01-09 18:33:37 +00:00
Sadie Powell
89537ed2ab Fix various cases of the &* being next to the name instead of type. 2022-09-29 12:36:01 +01:00
Sadie Powell
c036834745 Use NOMINMAX on Windows and undefine error in the log header. 2022-09-23 22:15:02 +01:00
Sadie Powell
2a0cce9d46 Fix more warnings discovered with -Weverything. 2022-09-05 21:14:36 +01:00
Sadie Powell
a5c2a94bd8 Fix cached log messages not having the correct timestamp. 2022-08-23 23:18:55 +01:00
Sadie Powell
2ac42d8017 Fix various Doxygen comment issues. 2022-05-02 17:36:37 +01:00
Sadie Powell
21ad77d9f2 Flush logs every 15 minutes to avoid losing data. 2022-05-02 17:21:19 +01:00
Sadie Powell
7b40edc9af Add a log method for stringifying a logging method. 2022-05-02 12:43:30 +01:00
Sadie Powell
ab5f93999c Mark fields that take a Log::Engine* as non-null. 2022-05-01 22:55:26 +01:00
Sadie Powell
c382faf9c9 Rewrite the entire logging system.
- Much cleaner API for writing to the log.
- Adds support for stderr and stdout logging to the core.
- Adds support for sql and syslog logging in modules.
2022-05-01 22:07:04 +01:00