Commit Graph

523 Commits

Author SHA1 Message Date
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
gabime
75c15e8028 Formatted cmake 2020-05-02 11:42:08 +03:00
gabime
ff0e430e46 Formatted cmake using cmake-format 2020-05-02 11:38:14 +03:00
Bruce Mitchener
937fe7e909 cmake: Fix tabs, whitespace at EOL. 2020-05-02 07:17:15 +07:00
Gabi Melman
7906592230
Fix #1499 2020-04-01 00:10:57 +03:00
gabime
0a5ada6411 clang-format 2020-03-21 15:25:26 +02:00
Gabi Melman
60a8c5f1c9 Added padding support and set_pattern to custom_flags 2020-03-21 15:03:41 +02:00
Gabi Melman
d1a1024465 Moved pattern formatter from spdlog/details to spdlog/ 2020-03-21 13:35:16 +02:00
Gabi Melman
0d7ff9ac47 Moved pattern formatter from spdlog/details to spdlog/ 2020-03-21 13:35:04 +02:00
Gabi Melman
752d5685dc Moved pattern formatter from spdlog/details to spdlog/ 2020-03-21 13:33:04 +02:00
gabime
3f86b250e6 Updated comment 2020-03-15 18:56:38 +02:00
gabime
5ab487dbae Updated example 2020-03-15 17:38:15 +02:00
gabime
8038bc2fc8 Update example 2020-03-06 15:21:21 +02:00
gabime
f20b12cf3f Update example 2020-03-06 15:16:48 +02:00
gabime
c8bd53509c Update example 2020-03-06 15:15:59 +02:00
gabime
006124d816 Update example 2020-03-06 15:15:10 +02:00
gabime
b7d7334451 Renamed level loaders 2020-03-06 15:09:46 +02:00
gabime
c861e2d9cf Updated example 2020-02-26 19:21:36 +02:00
gabime
c10be7eaec merge with v1.x 2020-02-26 18:13:13 +02:00
Michael R. Crusoe
8d06df9775
Enable building & running the example against an installed copy of spdlog 2020-02-07 16:09:20 +01:00
gabime
0243882238 Updated example 2019-12-22 20:58:16 +02:00
gabime
877eee408e renamed loaders with cfg 2019-12-22 20:40:19 +02:00
gabime
de20255c71 wip 2019-12-21 20:01:25 +02:00
gabime
1a1c37db7c wip 2019-12-21 19:59:23 +02:00
gabime
a87700a28c wip 2019-12-21 19:52:37 +02:00
gabime
1f8e9ad0fc renamed cfg namespace to loaders 2019-12-21 19:45:14 +02:00
gabime
773b8c5a54 refectored file names 2019-12-21 17:47:02 +02:00
gabime
fc3d18ed64 format 2019-12-21 15:54:42 +02:00
gabime
68ed281461 Refactored to cfg::log_levels class 2019-12-21 15:54:09 +02:00
gabime
65ada37399 refactor and and support for init from argv 2019-12-21 13:29:03 +02:00
gabime
a056b9115b clang-format 2019-12-13 18:26:36 +02:00
gabime
04d0240f8d updated example 2019-12-13 16:17:09 +02:00
gabime
8992f36fbf refactor env-inl 2019-12-13 15:14:42 +02:00
gabime
3d203aa7c4 Simplify and removed SPDLOG_PATTERN support 2019-12-13 14:49:41 +02:00
gabime
8d9d9899b7 wip 2019-12-12 20:00:18 +02:00
gabime
2b3000dddc wip 2019-12-11 01:24:51 +02:00
gabime
da2c15ecb4 wip config from env 2019-12-11 00:13:27 +02:00
gabime
0f24399887 wip 2019-12-08 17:08:20 +02:00
gabime
abbbda6f74 wip 2019-12-08 17:07:52 +02:00
gabime
4d41fdf0fc Wip 2019-12-08 13:35:15 +02:00
gabime
be2a751513 Fixed clang-tidy warning in example 2019-11-08 16:35:18 +02:00
gabime
9b7812a0f2 auto create log dir 2019-10-20 17:40:56 +03:00
gabime
7733849478 Updated meson build 2019-09-18 15:01:23 +03:00
gabime
65d02e495e Reverted the version() function 2019-09-05 19:50:00 +03:00
gabime
7f0398ca25 Added version() function 2019-09-05 18:51:28 +03:00
gabime
d7f05722d4 Fixed example 2019-09-05 18:32:54 +03:00
gabime
dae4f9fef6 split spdlog.cpp to multiple .cpp files 2019-09-05 14:37:25 +03:00
gabime
172cf26d77 Update comment 2019-09-05 02:31:03 +03:00
gabime
c97c025adb clang-format 2019-08-27 20:22:07 +03:00
gabime
d7e58ce10e Fixed example 2019-08-27 13:08:45 +03:00
gabime
72b0f9e8f7 Updated example 2019-08-27 01:51:59 +03:00
gabime
408a162044 Removed logger::clone() from API 2019-08-27 01:16:57 +03:00
gabime
7bfb6d6b76 Fixed example 2019-08-27 00:58:01 +03:00
gabime
04a8485b17 Replaced backtace implementation 2019-08-26 19:59:16 +03:00
gabime
29e21cc7f3 Comment 2019-08-26 00:56:05 +03:00
gabime
4f98b000eb Fixed example 2019-08-25 17:27:21 +03:00
gabime
b5d61b963a Fixed example 2019-08-25 17:25:06 +03:00
gabime
e085ba7fcc Fix example 2019-08-23 02:48:40 +03:00
gabime
b24ef39b9d Update example 2019-08-23 02:45:35 +03:00
gabime
0db4978899 Fixed example 2019-08-22 19:58:49 +03:00
gabime
7e728869cc comment 2019-08-22 19:48:11 +03:00
gabime
da1d98d603 Fix example 2019-08-19 13:12:22 +03:00
gabime
6683418983 Fix example 2019-08-19 13:06:30 +03:00
gabime
0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 2019-08-19 11:31:33 +03:00
Gabi Melman
84809db955
Update example.cpp 2019-07-10 03:07:17 +03:00
gabime
5f27697198 clang-format 2019-07-10 02:42:47 +03:00
Gabi Melman
7b218737cc
Merge pull request #1126 from mensinda/meson
Add meson support
2019-07-01 14:53:46 +03:00
Daniel Mensinger
3c64b3da97
Added example meson.build 2019-07-01 12:32:12 +02:00
gabime
bb0f3839c1 Updated CMake options and defaults 2019-07-01 02:06:09 +03:00
gabime
cf64f2baca Fixed CMake address sanitizer 2019-06-10 18:32:10 +03:00