Commit Graph

492 Commits

Author SHA1 Message Date
gabime
7e635fca68 Fixed #2724 by excluding bin_to_hex sink if using std::format 2023-07-08 17:12:25 +03:00
gabime
1f61f5e019 clang format 2023-06-07 13:23:44 +03:00
Bailey Chittle
069a2e8fc9
fix small issue when compiling with C++20 without std::format (#2688) 2023-03-25 02:47:37 +03:00
Zeus James
da14258533
Fix MinGW build issue on example (#2642)
* Fix MinGW build issue on example #2638

* Move the cmake change to example\CMakeLists.txt

* Update CMakeLists.txt on the example
2023-02-12 10:34:22 +02:00
Mohammad Ali
3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
2023-01-19 19:46:34 +02:00
gabime
a7e2bf161e Update user defined type example 2022-10-31 17:35:24 +02:00
gabime
070dd181df clang format 2022-10-31 17:09:45 +02:00
Kevin Slattery
d3dee23e6c Remove new macro, update example with correct way to specify fmt lib namespace when fmt_lib namespace alias cannot be used. 2022-05-12 18:55:08 -05:00
Kevin Slattery
5f5e70e96e C++14 build fixes for older gcc #2333 2022-05-11 15:14:41 -05:00
gabime
71105e0b07 Fixed #2227 2022-02-12 13:59:12 +02:00
gabime
c432fdd987 Bump fmt to version 8.1.1 and run clang-format 2022-02-12 13:20:15 +02:00
Gabi Melman
e45c11f98a
Update example.cpp 2021-12-11 17:18:40 +02:00
Gabi Melman
c211288576
Update example.cpp 2021-12-11 17:12:15 +02:00
Gabi Melman
4fefd51e08
Fixed custom type example to work in c++11 2021-12-11 17:07:10 +02:00
gabime
f81970191a Fixed example for custom_type 2021-12-11 16:24:07 +02:00
gabime
b8b16e49a5 Fixed example for custom_type 2021-12-11 16:23:46 +02:00
gabime
2c21d9ecf8 Fixed example for custom_type 2021-12-11 16:23:20 +02:00
gabime
2a45eff693 Fixed example for custom_type 2021-12-11 16:22:51 +02:00
gabime
5bf8728cfa Fixed example for std_format 2021-12-11 16:22:33 +02:00
Roocks Patrick (MTN PTT / External)
d93cea97ec Fix usage of ranges and to_hex in the same compile unit
When trying to use spdlog/fmt/bin_to_hex.h in the same compile unit as spdlog/fmt/bundled/ranges.h you got a compile error because there was a multiple definitions for iterable classes. This fix renames the begin() and end() getters in dump_info into getBegin()/getEnd() in order to avoid this collision.

Added an example of ranges in example.cpp to show that it actually works (an to_hex example was already there)
2021-12-01 15:37:48 +01:00
Sean Farrell
f52d526e1e Add example to replace default logger.
Close #2193
2021-11-28 13:55:14 +01:00
gabime
dc030ec53c clang-format 2021-11-16 23:44:35 +02:00
Gabi Melman
10b640d773
Update example.cpp 2021-11-16 22:37:43 +02:00
gabime
5b7dfefc7e rename file_event_handlers_t to file_event_handlers 2021-11-16 16:41:04 +02:00
gabime
698516f3f5 Updated example 2021-11-15 14:54:51 +02:00
gabime
b813bb863d Updated file_events example 2021-11-15 14:35:00 +02:00
gabime
30fb78813b Updated file events example 2021-11-15 14:32:34 +02:00
seker
24a551c14e file_event_handlers add before_open function 2021-11-15 19:14:35 +08:00
seker
c47ae3b15d add file event handlers 2021-11-12 09:49:49 +08:00
gabime
1ec50cdcfc update udp example 2021-09-05 11:35:00 +03:00
Chris Love
444df2b287 Address PR comments 2021-09-03 16:36:49 -07:00
Chris Love
8ee1c167b9 Don't use std::chrono_literals 2021-09-03 11:02:12 -07:00
Chris Love
486dc5102e Winsock support 2021-09-03 10:53:29 -07:00
Chris Love
4501f21ae7 Fix example 2021-08-26 18:50:55 -07:00
Chris Love
649424b8ea Fix IP address of udp sink example 2021-08-26 06:36:31 -07:00
Chris Love
a15f5137ef Fix udp sink on Windows 2021-08-26 06:35:28 -07:00
Chris Love
c5fd8a0b97 Port code from prior PR (#1746), code cleanups 2021-08-25 20:32:35 -07:00
gabime
0f39da5490 Updated example 2021-07-22 12:44:41 +03:00
dkavolis
1344d44a5a check args on formatting 2021-07-21 23:54:11 +01:00
gabime
e7e8b75a4c clang-format 2021-07-19 00:50:51 +03:00
gabime
7636f1f659 revert some changes made by mistake 2021-07-14 14:33:45 +03:00
gabime
1523c83650 Added fmt/compile.h bundled file 2021-07-14 14:28:34 +03:00
Nandan V
2a9edb2153
Minor typo 2021-04-03 11:42:35 +00:00
gabime
b2e31721e8 Update example 2020-12-11 16:58:49 +02:00
gabime
05d5546eb1 Restore example 2020-09-26 15:30:45 +03:00
gabime
cefe67726e wip fix #1680 again 2020-09-26 15:06:53 +03:00
gabime
34f3d29d93 Added stopwatch support 2020-08-29 02:48:43 +03:00
Raul Tambre
76cdeb62e3 Don't enable C language in CMake
spdlog doesn't seem to actually require the C language.
Not enabling it results in a significant initial configure time speedup.
2020-07-21 11:39:40 +03:00
Raul Tambre
ae9627c64c Raise CMake requirement to 3.13
* Reduces the range of possible version we'd need to test with.
* Enables newer policies reducing possible deprecation warnings from new policies.
* Allows removing some code for compatibility with older versions.
* Coincides with LLVM's bump to requiring CMake 3.13.
2020-07-20 22:03:50 +03:00
Gabi Melman
e5935f0ced
Delete meson.build 2020-05-02 17:39:15 +03:00