Commit Graph

83 Commits (0efef2af246eae9084cdc7495ffaa8599e3bb4b8)

Author SHA1 Message Date
gabime 0a53eafe18 update clang format again 2 years ago
gabime 4b2a8219d5 reformat code 2 years ago
gabime 9d52261185 clang format 2 years ago
gabime 1a0bfc7a89 clang format 2 years ago
Yubin b5b5043d42
Support async_overflow_policy::discard_new (#2876)
Reason for the discard_new policy: when there is an overflow, there
is usually some unexpected issue (a bug, or some other unexpected stuff).
And in case of unexpected issue, the first arrived log messages are usually
more important than subsequent ones. For example, some application
keep logging error messages in case of functionality failure, which,
when using async_overflow_policy::overrun_oldest, will overrun the
first arrived messages that may contain real reason for the failure.
2 years ago
gabime e7e8b75a4c clang-format 4 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
Cristian Morales Vega 7cdd65075c "#include" <spdlog/.*> instead of "spdlog/.*"
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html)
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
6 years ago
gabime ed8d099607 Fixed #1197 6 years ago
gabime c97c025adb clang-format 6 years ago
gabime 408a162044 Removed logger::clone() from API 6 years ago
gabime 04a8485b17 Replaced backtace implementation 6 years ago
gabime 292fc153ef clang-format 6 years ago
gabime eec6e28b19 Async logger cleanup 6 years ago
gabime f3e379cf78 Fixed async dump_backtrace 6 years ago
gabime 0284a23d0a Changed sink_it_ to accept const log_message& 6 years ago
k0zmo 789fb1e7c9 Move templated constructor definition to header file 6 years ago
gabime bcfa9241b8 Updated copyright headers 6 years ago
gabime 6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 6 years ago
gabime 46ef71e3ec Normalized copyright message 6 years ago
gabime 005450ff13 wip 6 years ago
gabime 9564eb2edb Moved cpp files to inl.h 6 years ago
gabime 69fcaf14e5 wip static-lib 6 years ago
gabime 2de924a187 clang-format 6 years ago
gabime c1c2ff2d07 wip 6 years ago
gabime baefe0b3f6 wip 6 years ago
gabime 36112371c0 Reverted const qualifier to log_msg& args, fixed issue #849, and added counter tests 7 years ago
gabime 102c31a04c Accecpt iterators by value in logger ctor insted of ref 7 years ago
gabime a06d32ae19 Fixed clang-tidy warnings 7 years ago
gabime 14c0417f3e Fixed clang-tidy warning 7 years ago
gabime 65defd3806 Replaced SPDLOG_FINAL macro with final 7 years ago
gabime 91d8869f36 Added "clone()" support to loggers 7 years ago
gabime 05d6960ebc code formatting and clang tidy warnings fixes 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime 9cbdd5ffd4 Added async_nonblocking factory 7 years ago
gabime b710e0fe86 Changed some functions to accept strings instead of ref to strings for better semantics 7 years ago
gabime c2a49080aa Refactored sink interface and base_sink 7 years ago
gabime 7ed8e1b59d renamed async block policy 7 years ago
gabime a21594bec7 move underscores to the end of private members 7 years ago
gabime caa26a2a47 Normalized spdlog include paths 7 years ago
gabime c50ba69689 removed un needed includes 7 years ago
gabime 6f4cd8d397 thread_pool and refactoring async 7 years ago
gabime 5afb5dc782 Changed clang formatting for templates 8 years ago
gabime a2653d409f clang-format 8 years ago
gabime 84d3c90b93 Fixed g++ 4.9 warnings after the clang-tidy fixes 8 years ago
Daniel Chabrowski 0c94ce0039 deleted copy op and a little format 8 years ago
Daniel Chabrowski af50d5ef1f readability-inconsistent-declaration-parameter-name 8 years ago
Daniel Chabrowski fb6df0512f modernize-use-override 8 years ago
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:
8 years ago
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
8 years ago