Commit Graph

57 Commits

Author SHA1 Message Date
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 1b04c222cf Fixed issue #888 2018-10-30 00:54:22 +02:00
gabime 392d126372 Renamed string_view_type -> string_view_t 2018-10-21 23:50:07 +03:00
gabime 894438d5fb Better support for string_view 2018-10-21 12:46:58 +03:00
Gabi Melman 2ad191aeba
Update log_msg.h 2018-10-20 18:27:58 +03:00
gabime 70bef682b0 Fixed clang-tidy warning about implicit conversion to string_view 2018-10-19 17:12:02 +03:00
gabime 6355e9895d Major change to log_msg - contain only string_view instead of buffer 2018-10-19 02:15:50 +03:00
gabime abf4af2645 Merge branch 'sized_buf' of https://github.com/peergynt/spdlog into peergynt-sized_buf 2018-10-18 23:29:42 +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 3e2d593dde always initialize level and thread_id in log_msg 2018-10-18 11:18:02 +03:00
gabime 1b8bf35acc Micro optimize: don't init log_msg.msg_id on construction. It will be set anyway later 2018-10-06 01:49:34 +03: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
Gabi Melman c5011181bb
Update log_msg.h 2018-10-01 14:27:43 +03:00
gabime 607779cccf micro optimization in log_msg constructor 2018-08-13 12:27:11 +03:00
gabime 0c19bdd772 pattern per sink and pattern caching 2018-06-24 01:32:39 +03:00
gabime cdbf2e361b Upgrade to fmt 5.x 2018-06-12 18:48:22 +03:00
gabime 4ec17f1a1a Normalized spdlog include paths 2018-04-29 01:43:42 +03:00
gabime 6f4cd8d397 thread_pool and refactoring async 2018-04-14 03:34:57 +03:00
gabime c8610d9a86 support for color formatting 2018-04-06 02:24:07 +03:00
gabime 56e4a201ec formatting 2018-03-17 12:47:46 +02:00
gabime a2653d409f clang-format 2018-03-09 15:26:33 +02:00
Daniel Chabrowski 0c94ce0039 deleted copy op and a little format 2018-02-25 03:35:20 +01:00
Daniel Chabrowski e5bbe57f01 cppcoreguidelines-pro-type-member 2018-02-25 01:15:35 +01: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
Tennn f8d509d010 Fixed issues 449
Please check it
2017-05-21 17:44:44 +08:00
gabime 6cc7e7382e astyle 2017-05-21 01:56:56 +03:00
gabime 98addad888 Disable colors if terminal no attached and simplfy ansicolor_sink 2017-05-21 01:36:03 +03: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 0ae66b5b28 support for external fmtlib 2016-07-22 18:06:36 +03:00
gabime f5bde237dd Updated fmt lib to version 0d5ef5c2a66026409b0cfbafa1d2f46cdc5aa4d0 2016-07-15 18:35:43 +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
gabime 0d26359856 astyle 2016-04-20 11:57:49 +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 8da33db62f Removed redundant "using log_thread_id=size_t" 2015-04-08 10:56:39 +03:00
gabime 4dd31bf031 fixed pedantic gcc errors 2015-04-07 22:04:10 +03:00
gabime 005a36f4fd Removed redundant field initializations from log_msg struct 2015-04-07 21:58:46 +03:00
gabime 0684b4f378 use size_t to better represent thread id across platforms 2015-04-07 21:35:41 +03:00
gabime a09107927b Fix Visual Studio poor std::this_thread::get_id() performance by using GetCurrentThreadId() (and pthread_self() under linux) 2015-04-07 20:26:42 +03:00
gabime acb06ea977 Fixed thread id bug in async mode by passing thread id in log_msg struct 2015-04-07 19:57:27 +03:00
gabime 40a55b8e34 astyle 2014-12-21 02:47:04 +02:00
gabime d163b8c45a astyle 2014-12-21 02:42:37 +02:00
gabime b1867cfba3 log levels now lowercase 2014-12-21 01:30:39 +02:00
gabime 52d02af950 using mpmc bounded q for async and many async optimizations 2014-12-05 20:25:04 +02:00
gabime 754cac85ac defer localtime to formatter to improve async performace 2014-12-04 11:48:53 +02:00
gabi 243dc61e58 async using lockfree queue and bug fixes regarding usage of cppformat 2014-12-02 16:41:12 +02:00