Commit Graph

162 Commits

Author SHA1 Message Date
gabime ff89f1476d Restored error_handler as std::function 2019-04-26 18:14:59 +03:00
gabime 13db9d9452 Fix build 2019-04-09 16:46:17 +03:00
Gabi Melman 6bec53dcd2
Update logger.h 2019-04-06 02:14:08 +03:00
gabime bfbb4e4050 some err handler cleanup 2019-04-05 23:40:27 +03:00
gabime 2aceb13f3e fix support for utf8 logging under win32 2019-04-05 23:34:55 +03:00
gabime 17f9cdd401 static lib wip 2019-04-05 23:05:46 +03:00
gabime e2e3df9013 static lib wip 2019-04-05 16:44:17 +03:00
gabime ef8773a89b Moved logger_impl back into logger.h 2019-04-05 13:26:33 +03:00
DanielChabrowski a6229d9e87 Remove pointless log with enable_if 2019-02-06 05:24:25 +01:00
Jerome Meyer ce8cf1e152 Fix typos 2018-12-06 16:06:01 -05:00
gabime bd6d88b884 Removed uneeded locale include 2018-12-05 18:03:56 +02:00
gabime dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 2018-11-24 17:08:13 +02:00
gabime a31719b546 clang-format 2018-11-22 18:49:14 +02:00
gabime f2305fe5bf Support for source file/line logging 2018-11-22 18:47:50 +02:00
gabime 9b5b4cd505 comment 2018-11-12 12:12:33 +02:00
gabime c5069135d7 Improved compile time level support 2018-11-12 12:01:10 +02:00
gabime 0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 2018-11-11 18:15:24 +02:00
gabime 240a58fd6e Fixed issue #881 2018-10-24 08:47:02 +03:00
gabime 392d126372 Renamed string_view_type -> string_view_t 2018-10-21 23:50:07 +03:00
gabime 1bdd556d3b code formatting 2018-10-21 23:23:40 +03:00
gabime 9daad800a8 Fix mingw compilation 2018-10-21 19:26:11 +03:00
gabime 8d2c956563 Optimize log(const T&) if can be statically converted to string_view 2018-10-21 19:04:55 +03:00
gabime 0584d6d89b Removed logn declaration 2018-10-21 18:38:37 +03:00
Jerome Meyer cb71fea0f6 Use fmt::string_view when logging a C string to avoid unnecessary copy 2018-10-18 11:04:20 -04:00
gabime 36112371c0 Reverted const qualifier to log_msg& args, fixed issue #849, and added counter tests 2018-10-05 14:23:37 +03:00
gabime 2fa538779f Fixed static_assert 2018-10-04 02:20:47 +03:00
gabime b7a6659451 code formatting 2018-10-04 02:10:46 +03:00
gabime 102c31a04c Accecpt iterators by value in logger ctor insted of ref 2018-10-04 02:06:39 +03:00
gabime 8b42b7d269 Fix support for wchar to utf8 under windows (fix issue #851 and #764) 2018-10-02 18:27:49 +03:00
gabime a06d32ae19 Fixed clang-tidy warnings 2018-09-27 01:14:35 +03:00
gabime 5d7845c138 Added "clone()" support to loggers 2018-08-25 17:55:31 +03:00
gabime 91d8869f36 Added "clone()" support to loggers 2018-08-25 17:35:20 +03:00
gabime 33329c80a9 code formatting 2018-07-23 00:13:52 +03:00
gabime 693103af9c support set_formatter in spdlog.h 2018-07-22 21:52:46 +03:00
gabime 9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime ddb3002bc1 Added non const sinks() function to support addition/removal of sinks from existing logger 2018-07-20 12:49:30 +01:00
gabime 9df2bd256e Changed some functions to accept strings instead of ref to strings for better semantics 2018-07-19 14:54:26 +03:00
gabime c2a49080aa Refactored sink interface and base_sink 2018-07-14 16:21:53 +03:00
gabime 16ee72da7c clang format 2018-07-10 23:53:00 +03:00
gabime 81f29a9a7a Fixed wchar support in messages 2018-07-10 17:01:49 +03:00
gabime 4f1ce9189f Fixed issue #747 2018-07-07 16:40:29 +03:00
gabime 775e410b00 Fixed issue #747 2018-07-07 16:29:05 +03:00
gabime c9331594bb Renamed file to pattern_forammter.h and fixed utc support 2018-07-07 16:15:17 +03:00
Gabi Melman 3ebdb2fd8b
Update logger.h 2018-07-06 08:40:55 +03:00
gabime 0c19bdd772 pattern per sink and pattern caching 2018-06-24 01:32:39 +03:00
gabime a21594bec7 move underscores to the end of private members 2018-06-10 22:59:17 +03:00
gabime caa26a2a47 Normalized spdlog include paths 2018-04-29 01:31:09 +03:00
gabime c962c88342 Fixed linux port of v1.x 2018-04-20 13:20:19 +03:00
gabime 11e068d7a3 Added missing #include 2018-04-19 17:50:18 +03:00
gabime 6f4cd8d397 thread_pool and refactoring async 2018-04-14 03:34:57 +03:00
gabime 7eb6ca6337 formatting 2018-03-17 12:49:45 +02:00
Gabi Melman fe8a519434
Update logger.h 2018-03-16 22:03:54 +02:00
gabime 4445f6f869 formatting 2018-03-16 17:35:56 +02:00
gabime 5afb5dc782 Changed clang formatting for templates 2018-03-16 17:13:50 +02:00
gabime a2653d409f clang-format 2018-03-09 15:26:33 +02:00
Daniel Chabrowski 5355bd3a8f readability-named-parameter 2018-02-25 12:39:37 +01:00
Daniel Chabrowski 9ce66f2c9a modernize-pass-by-value 2018-02-25 01:58:09 +01:00
Daniel Chabrowski ad624432d8 google-explicit-constructor 2018-02-25 01:40:46 +01:00
gabime f5939f9e56 astyle 2017-12-01 03:46:19 +02:00
Gabi Melman 613f024d42
Removed forgotten *_if declarations 2017-11-30 23:42:57 +02:00
gabime dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 2017-11-25 15:19:41 +02:00
daylanKifky 27e7412640 modified path on quoted #includes
Paths pointing to the root of the library where replaced for ones relatives to each file.

For example, inside /include/spdlog/details/file_helper.h:

This will look for os.h in /include/spdlog/details/spdlog/details/ which doesn't exists.

replaced with:
2017-11-11 13:44:27 +01:00
gabime 709948ff4a Fixed issue #527 2017-10-12 19:48:04 +03:00
Alexei Pastuchov 8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
2017-06-29 09:51:44 +02:00
Asit Kumar Dhal b463b06ab5 conditional logging for all levels 2017-06-17 16:07:04 +02:00
Asit Kumar Dhal 9a189badbd conditional logging implementation 2017-06-17 15:54:44 +02:00
Asit Kumar Dhal ed7c3a83f8 conditional logging implementation 2017-06-17 02:45:24 +02:00
ThePhD d98d54896b use if statement instead of switch (changes of adding new time specifications outside of standard are probably unlikely anyhow)
pattern_time -> pattern_time_type
ptime variable name -> pattern_time variable name
make sure four spaces used, not tabs
2017-05-31 12:52:12 -04:00
ThePhD 5c5080d304 implement a flag (in this case, an enumeration) that allows control over the type; we make it an enum for possible expansions of time abstractions that might make it into the C++ standard in the future (see Howard Hinnant's date/timezone library) or might be usefully-available from the OS at some point in time 2017-05-30 18:05:25 -04:00
Tennn f8d509d010 Fixed issues 449
Please check it
2017-05-21 17:44:44 +08:00
Alexander Zilberkant f29ff77ae7 implement message counter feature
adds %i logger pattern for printing log message sequence ID
2017-05-18 22:46:16 +03:00
gabime 1d6842f0f9 bugfix in color detection and astyle 2017-05-17 00:06:11 +03:00
Sidyhe 8ee6d38501 add wide string to utf8 string support 2017-05-10 21:02:41 +08:00
gabime 0c276beaaf astyle 2017-03-28 02:08:18 +03:00
gabime 397d4866b3 Fixed issue #396 and added some tests to catch it 2017-03-28 01:54:33 +03:00
Anuradha Dissanayake ad1c18704d Disambiguate fmt logging methods that are using variadic templates.
As variadic template arguments can be zero length, we need to specify that at least one fmt argument is provided, to distinguish these methods from the existing trivial method that takes no fmt arguments.

Without this, static analysers such as ReSharper flag the logging calls as errors.
2017-03-27 08:58:03 +13:00
gabime 0a3a3f0ee2 Updated comment on thread safety 2016-12-31 17:54:37 +02:00
Therenall 66b08294ca Exposed logger sinks. 2016-09-24 15:14:05 -04:00
gabime 3afabcd17e astyle 2016-09-02 17:06:00 +03:00
gabime 1df30a0733 support flush_on(..) in async loggers too 2016-09-02 16:19:29 +03:00
gabime e7debaacd7 astyle 2016-08-05 04:43:20 +03:00
gabime 39cdd08a54 no exceptions while logging 2016-08-05 03:56:40 +03:00
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 2016-07-09 00:46:00 +03:00
gabime 7885aa478c no streams 2016-07-08 17:50:13 +03:00
Kevin M. Godby 6b966478c1 Automatically flush log if message level is above certain severity. 2016-05-02 17:23:12 -05:00
gabime 0d26359856 astyle 2016-04-20 11:57:49 +03:00
gabime 083d6c0d2f rename atomic level type name 2016-04-10 01:43:52 +03:00
gabime 974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 2016-04-10 01:37:11 +03:00
gabime 495ecaeaee astyle 2016-04-03 02:14:54 +03:00
Kevin M. Godby 077c3095eb Added missing standard header includes. 2016-02-24 22:20:07 -06:00
Kevin M. Godby 196689f720 Fixed header include problems. 2016-02-24 21:26:18 -06:00
gabime 8c38b4ee9e MIT license 2015-11-28 18:24:20 +02:00
gabime 06ffde6333 Fixed flush of logs in async mode 2015-11-28 15:00:19 +02:00
Denis Ivaykin 63e0012e34 flush in logger 2015-05-09 13:24:01 +02:00
gabi 4fd1ac8ac5 Added support for logger->info(const T&) call style 2015-01-05 23:55:05 +02:00
gabime 28da625a6f removed the confusing stop() function 2014-12-21 03:11:40 +02:00
gabime 40a55b8e34 astyle 2014-12-21 02:47:04 +02:00
gabime d163b8c45a astyle 2014-12-21 02:42:37 +02:00
gabi 348390f90d Added debug macros 2014-12-18 10:07:21 +02:00
gabi 4637cf35df Improved perf by using const char* instead of std::string& when accepting format strings 2014-12-08 00:55:45 +02:00