Commit Graph

50 Commits

Author SHA1 Message Date
gabime 9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime 9cbdd5ffd4 Added async_nonblocking factory 2018-07-20 23:20:48 +03:00
gabime b710e0fe86 Changed some functions to accept strings instead of ref to strings for better semantics 2018-07-19 15:00:05 +03:00
gabime c2a49080aa Refactored sink interface and base_sink 2018-07-14 16:21:53 +03:00
gabime 7ed8e1b59d renamed async block policy 2018-07-08 00:53:50 +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 c50ba69689 removed un needed includes 2018-04-14 04:16:05 +03:00
gabime 6f4cd8d397 thread_pool and refactoring async 2018-04-14 03:34:57 +03: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
gabime 84d3c90b93 Fixed g++ 4.9 warnings after the clang-tidy fixes 2018-02-28 00:11:50 +02:00
Daniel Chabrowski 0c94ce0039 deleted copy op and a little format 2018-02-25 03:35:20 +01:00
Daniel Chabrowski af50d5ef1f readability-inconsistent-declaration-parameter-name 2018-02-25 02:19:26 +01:00
Daniel Chabrowski fb6df0512f modernize-use-override 2018-02-24 23:56:56 +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
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
Jean-Michaël Celerier 53138c20fb Add an optional final qualifier to types
When building with GCC's -Wfinal-types, a lot of types of spdlog
are marked as being more optimizable if they were marked final.

This patch adds a possibility for the user of the library to `#define SPDLOG_FINAL final`
and enjoy potentially better performance : GCC is then able to replace virtual calls by true
function calls if it can ensure that there are no derived types).

By default SPDLOG_FINAL is defined to nothing to not break existing code that
may be inheriting of some of these types for some reason.
2017-04-28 17:24:55 +02:00
odeits 82404f6f65 fix typo potentialy to potentially 2017-04-06 20:13:53 -04: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
gabime 332b7c0d7f astyle 2016-08-22 22:09:23 +03:00
gabime 4f52cc4dec async flush now waits for queue to be empty before returning 2016-08-22 22:07:29 +03:00
gabime 7885aa478c no streams 2016-07-08 17:50:13 +03:00
Philippe Serreault ee815042dd In async mode, worker thread can now execute an optional teardown callback upon exit.
(Note: this can be helpful when a custom sink invokes a JNI callback, which implies that worker thread was previously attached to JVM, and needs to be cleanly detached upon exit)
2016-05-11 17:22:09 +02: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 06ffde6333 Fixed flush of logs in async mode 2015-11-28 15:00:19 +02:00
Denis Ivaykin 432e1109dd flush interval part 2 2015-05-11 00:17:49 +02:00
Denis Ivaykin f363fff109 async auto flush 2015-05-09 22:30:05 +02:00
gabime f3a4174853 astyle.sh 2015-01-15 10:49:05 +02:00
gabime 489304a953 style 2015-01-15 10:48:52 +02:00
gabime 89afa909e1 shortened enum policy name and moved into common.h 2015-01-15 10:34:50 +02:00
Denis Ivaykin 365d895482 discard policies on queue overflow 2015-01-14 15:35:01 -06:00
Denis Ivaykin d47fbbb79e worker warmup callback 2015-01-14 09:21:34 -06: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 4dc75adf9b async_logger comments 2014-12-07 04:33:01 +02:00
gabi 0dd4e552ed async_logger comments 2014-12-07 04:27:46 +02:00
gabi d37bded994 More improvements to the async logger 2014-12-07 04:18:07 +02:00
gabi 243dc61e58 async using lockfree queue and bug fixes regarding usage of cppformat 2014-12-02 16:41:12 +02:00
gabime 7f0434528b astyle 2014-11-24 01:39:51 +02:00
gabime 6cda714e4a fixed gcc pedantic warnings 2014-11-24 01:38:29 +02:00
gabi 4cb6aa90b2 New async_logger class and API 2014-11-24 01:29:09 +02:00