Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD][CORE] Extract the logging system into a subproject. #3119

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
6ebf94f
Withdrawn changes from #2858 as they break ABI compat
Mar 5, 2024
3601861
[core] Restored logger perf improvements that were blocked up to 1.6.0
Mar 5, 2024
be1e774
[core] New implementation for the logging/formatting system
ethouris May 24, 2024
308af58
Fixed parts in non-default-enabled code parts
ethouris May 24, 2024
5ae2a03
Updated sfmt.h with reimplementation fixes
ethouris May 25, 2024
089dd51
Fixed heavy logging cases and atomics. Withdrawn changes for enums. U…
ethouris May 25, 2024
e37d37d
Provided a special version for atomic. Withdrawn unnecessary changes
ethouris May 26, 2024
6ce84fe
Changed more formatting usage to sfmt
ethouris May 26, 2024
8126c49
Removed ostringstream from utilities
ethouris May 26, 2024
216c1ed
Removed ostringstream use. Fixed C++03 problem with Ensure declaration
May 27, 2024
d8cebcd
Cleared out warn-errors for logging-off version
May 27, 2024
4e39fd7
Moved Printable out of C++11-dependent section (args... no longer nee…
May 27, 2024
5199746
Added extra version of snprintf for old Windows
ethouris May 27, 2024
4843143
Fixed the use of std::atomic
ethouris May 28, 2024
1a0eca4
Fixed the right atomic type used with logging. Fixed some reported sh…
ethouris May 28, 2024
9643702
Fixed a clang-reported warning (to trigger rebuilding)
ethouris May 28, 2024
f4ecbc1
Updated sfmt.h, fixed sync formatting
Jun 17, 2024
b90f540
Updated and merged
Jun 17, 2024
7660e92
Merge branch 'master' into dev-add-sfmt-for-logging
Jun 18, 2024
0a607c7
Some cosmetic fixes. Fixed the use of std::abs
Jun 18, 2024
d2ec1cf
Fixed usage of <cmath> with std
Jun 19, 2024
193fe39
Fixed correct includes for std::div
Jun 19, 2024
c81d4d6
Renamed sfmt.h and moved to srt namespace
Jun 20, 2024
0920fbf
[core] Setting up fmt with iomanip for logging system
Jun 25, 2024
f4088e4
Removed the use of sfmt obufstream
Jun 25, 2024
e48a6cb
Removed named reference to avoid dangling ref warning
Jun 25, 2024
2ba12a0
Added lacking include for sstream
Jun 25, 2024
f16fed7
Cleaned up previous usage of sfmt facilities
Jun 26, 2024
a49bdd9
Provided C++03 version of fmt
Jun 27, 2024
8b4d44c
Added some fixes as attempt to compile in C++03 (failed)
Jul 11, 2024
eed8c3f
Added separate C++03 compatible fmt API
Jul 18, 2024
4b6c56e
Removed commented-out previous code
Jul 18, 2024
e1617ea
Removed commented-out code
Jul 18, 2024
ac3d5d5
Moved overloaded operator << to inside the class
Jul 18, 2024
d1ae64d
Added C++11 flag that could be handled also on Windows
Jul 19, 2024
7472f05
Attempting to force C++11 in MICROSOFT to compile tools
Jul 19, 2024
4acdf00
Changed the way to require C++11 in apps.
Jul 19, 2024
d8bda01
Blocked unused function reported as warn/error
Jul 19, 2024
d0f472f
Merge branch 'master' into dev-add-custom-fmt-for-logging
Jul 22, 2024
061ec3b
Added UDL for fmt_stringview to simplify raw string format passing
Jul 22, 2024
1a6ce38
Added some more fixes with use of ofmt
Jul 23, 2024
05b5bb7
[maint] Removed VC 2013. Added VC 2022
Jul 25, 2024
a8664d2
Merge branch 'main-ci-remove-old-windows' into dev-add-custom-fmt-for…
Jul 26, 2024
880fa9d
Reworked the fmt API
Jul 26, 2024
7aa87a5
Merge branch 'master' into dev-restore-logger-changes
Sep 2, 2024
fc9482b
Really restored changes
Sep 2, 2024
fecce73
Updated and fixed
Sep 3, 2024
51350b1
Removed copyright notice blindly copied from another project
Sep 3, 2024
f0bfba8
Added more replacement for stringstream. Removed unused CIPAddress::show
Sep 11, 2024
8f82530
Updated and fixed
Sep 24, 2024
6106607
Merge branch 'master' into dev-add-custom-fmt-for-logging
ethouris Sep 24, 2024
3376247
Updated and fixed
Sep 27, 2024
a8dbce8
Merge branch 'master' into dev-add-custom-fmt-for-logging
Oct 18, 2024
59435c2
Merge branch 'master' into dev-add-custom-fmt-for-logging
Dec 6, 2024
8e74ad5
Initial rework of the logging system
Dec 9, 2024
571b6f3
Adjusted to the new configuration API
Dec 9, 2024
c91d9de
[DEV] Extracted logging system to a separate subproject
Feb 18, 2025
d025710
Merge branch 'master' into dev-extract-logging-system
Feb 18, 2025
f3eb220
Adjustment changes for C++98. Further changes in remaining files used…
Feb 20, 2025
892f0c3
Added missing generated files. Some naming fixes and cosmetic changes
Feb 24, 2025
16f7f6c
Attempting to fix some build errors
Feb 24, 2025
fe73ebb
Removed 'far' as identified (keyword in MSVC)
Feb 24, 2025
00d4ab5
Fixed external thread id provider for threadname
Feb 24, 2025
f6746bf
Fixed problems reported on MSVC
ethouris Feb 24, 2025
cea8217
Forcedully set default C++ std value for libs
Feb 24, 2025
8e58e94
Fixed the use of always defined ENABLE_LOGGING.
Feb 25, 2025
cbcc80e
Changed sync configuration to extra include file
Feb 25, 2025
e05369c
Fixed the use of hvu_sync.h in hvu_threadname.h
Feb 25, 2025
d1e968c
Applied some parallel fixes from other PR
Feb 25, 2025
facc4ad
Merge branch 'master' into dev-add-custom-fmt-for-logging
Feb 25, 2025
99ca9b4
Updated and fixed
Feb 26, 2025
05d82be
Updated from 2964
Feb 26, 2025
b956d8d
Added lacking file. Fixed wrong dependency on stdint
Feb 28, 2025
4f4111e
Merge branch 'dev-add-custom-fmt-for-logging' into dev-extract-loggin…
Feb 28, 2025
3d3f7d5
Updated and fixed.
Feb 28, 2025
c028797
Merge branch 'master' into dev-extract-logging-system
Mar 10, 2025
d793b63
Some cosmetic fixes
Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed correct includes for std::div
Mikołaj Małecki committed Jun 19, 2024
commit 193fe39d3010ecf8eb2b3209eee5f8129220eaca
3 changes: 2 additions & 1 deletion srtcore/sfmt.h
Original file line number Diff line number Diff line change
@@ -15,7 +15,8 @@

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cmath> // std::abs
#include <cstdlib> // std::div
#include <string>
#include <vector>
#include <list>

Unchanged files with check annotations Beta

}
return os.str();
/* OLD VERSION
//char buf[256];
using namespace std;
ostringstream os;
// I know, it's funny to use sprintf and ostringstream simultaneously,
// but " %02X" in iostream is: << " " << hex << uppercase << setw(2) << setfill('0') << VALUE << setw(1)
// Too noisy. OTOH ostringstream solves the problem of memory allocation
// for a string of unpredictable size.
//sprintf(buf, "%02X", int(bytes[0]));
os.fill('0');
os.width(2);
os.setf(ios::basefield, ios::hex);
os.setf(ios::uppercase);
//os << buf;
os << int(bytes[0]);
for (size_t i = 1; i < size; ++i)
{
//sprintf(buf, " %02X", int(bytes[i]));
//os << buf;
os << int(bytes[i]);
}
return os.str();
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
}