Commit Graph

61 Commits (251c856a12d50c770f2bbb665e2ef553decfad50)

Author SHA1 Message Date
gabime 1a0bfc7a89 clang format 2 years ago
LE GARREC Vincent 58e2b455fb
Fix build with "-fvisibility=hidden" 4 years ago
sunlong169 acbf18d0dd
No need to define the Mutex mutex_ as mutable there is no const method.
There's no need to define the Mutex mutex_ as mutable since class base_sink has no const method.
4 years ago
gabime e7e8b75a4c clang-format 4 years ago
Matthias Moulin 9d3dde0900
Made mutex member variable mutable
Classes inheriting from `base_sink` can now lock the base mutex inside their `const` member methods (e.g., basic accessors).
4 years ago
gabime c16eb80d7f Fixed multiple clang-tidy warnings 5 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 fe20afac17 clang-format 6 years ago
gabime c368500efd Reverted some external template declarations 6 years ago
gabime e7ab49c973 Added extern tempalate declarations 6 years ago
k0zmo 29fa474e4a Use SPDLOG_HEADER_ONLY uniformly 6 years ago
gabime 29f2eeea31 Removed formatter_ member from the sink interface 6 years ago
gabime bcfa9241b8 Updated copyright headers 6 years ago
David Zemon 8dd85285e7 Allow user to choose between static or shared library 6 years ago
gabime 46ef71e3ec Normalized copyright message 6 years ago
gabime 9564eb2edb Moved cpp files to inl.h 6 years ago
gabime 2b90ab496a ansicolor_sink.cpp 6 years ago
gabime 6651a48c4d wip 6 years ago
gabime cd8e15dcd1 Fixed clang-tidy warnings 7 years ago
gabime e8dae26176 Moved spdlog::make_unique to spdlog::details::make_unique and prevent T to be array 7 years ago
gabime a74bbe7381 base_sink default ctor 7 years ago
gabime 729ec21629 Added virtual protected functions to base_sink 7 years ago
gabime b393715bee Added virtual protected functions to base_sink 7 years ago
gabime 65defd3806 Replaced SPDLOG_FINAL macro with final 7 years ago
gabime 05d6960ebc code formatting and clang tidy warnings fixes 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime c2a49080aa Refactored sink interface and base_sink 7 years ago
gabime cd4dcbab36 Renamed simple_file_sink -> basic_file_sink 7 years ago
gabime 0c19bdd772 pattern per sink and pattern caching 7 years ago
gabime 15f3b0fea5 format 7 years ago
gabime a21594bec7 move underscores to the end of private members 7 years ago
gabime f886ae0005 Removed unneeded include 7 years ago
gabime caa26a2a47 Normalized spdlog include paths 7 years ago
gabime 56e4a201ec formatting 8 years ago
gabime 4445f6f869 formatting 8 years ago
gabime 5afb5dc782 Changed clang formatting for templates 8 years ago
gabime a2653d409f clang-format 8 years ago
Daniel Chabrowski 0c94ce0039 deleted copy op and a little format 8 years ago
Daniel Chabrowski fb6df0512f modernize-use-override 8 years ago
gabime a9149c6d46 added lock on flush in base_sink 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
Alexei Pastuchov 8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
8 years ago
Tennn f8d509d010 Fixed issues 449
Please check it
8 years ago
gabime 095cb1f560 Added _flush() to base_sink 8 years ago
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.
8 years ago
odeits 6670d3b925 fix typos in base_sink.h 9 years ago
Gabi Melman cee155c1dd typo in comment 9 years ago
gabime 0d26359856 astyle 9 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 077c3095eb Added missing standard header includes. 10 years ago