Commit Graph

283 Commits (63535f140b938af0c0894d5778c25150bbfa28d9)

Author SHA1 Message Date
dkavolis 23572369fc Perfect forwarding for arguments 5 years ago
gabime 231ca50700 clang-format 5 years ago
gabime e69699e12c enable_if 5 years ago
gabime b0c4794305 Use default pointer type in enable_if 5 years ago
Joe Burzinski 741b0d6e82 Address code review comments: remove perfect forwarding on FormatString template parameters. 5 years ago
Joe Burzinski 3041faffab Address code review comments: revert perfect forwarding on places that didn't need it, remove negative compilation unit test. 5 years ago
Joe Burzinski 30ee690401 Add support for FMT_STRING compile time checking. Add negative compilation unit test for compilers and c++ standard that support relaxed constexpr. 5 years ago
Ron Rechenmacher faaef7686d pass log_time param by value 5 years ago
Ron Rechenmacher 9e6f5b6b2d add single logger method and log_msg constructor and tests/test_time_point.cpp 5 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
gabime 5370443ece clang-format 6 years ago
dominicpoeschko 25b10dc264 additional log overload
calling log with a string_view as msg called
```
 template<typename... Args>
    void log(source_loc loc, level::level_enum lvl, string_view_t fmt, const Args &... args)
```

instead of
```
template<class T, typename std::enable_if<std::is_convertible<const T &, spdlog::string_view_t>::value, T>::type * = nullptr>
    void log(source_loc loc, level::level_enum lvl, const T &msg)
```

which lead to an unnecessary call to fmt::format
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 bf40855825 Micro-optimize level checking by inlining 6 years ago
gabime 79468cf676 Micro-optimze log_it_ 6 years ago
gabime 15b393193a Replaced a forgotten try with SPDLOG_TRY 6 years ago
Florian Pigorsch 4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
6 years ago
gabime 9a0a0c2d8c clang-format 6 years ago
gabime fcc809f4f1 Refactored logger 6 years ago
gabime 9369fe8c27 Fix #1262 6 years ago
Gabi Melman bf49bebe7a
Update logger.h 6 years ago
gabime 4c45c6fbd8 Removed redundant func 6 years ago
gabime f795297e15 try different apprach to backtracer object 6 years ago
gabime ed8d099607 Fixed #1197 6 years ago
gabime f3a7ef1199 Fix compile bug 6 years ago
Gabi Melman cb890c96b9
Update logger.h 6 years ago
gabime f5492aed12 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime c97c025adb clang-format 6 years ago
gabime 0fa09f6af4 Removed dead clode 6 years ago
gabime 011ed270e8 backtrace support for wchar api under windows 6 years ago
gabime 408a162044 Removed logger::clone() from API 6 years ago
gabime e1be7f3d6f Refactoring to better support backtrace 6 years ago
gabime 04a8485b17 Replaced backtace implementation 6 years ago
gabime f3e379cf78 Fixed async dump_backtrace 6 years ago
gabime 099137fe9a backtrace_sink code cleanup 6 years ago
gabime a7f7984c4a backtrace support api 6 years ago
gabime dd33c16aae Replace backtrace trigger with dump_backtrace() 6 years ago
gabime 8d8aacf5e9 Protect from double call to enable_backtrace() 6 years ago
gabime a6d8b52686 Added enable_backtrace to spdlog_api 6 years ago
gabime 0284a23d0a Changed sink_it_ to accept const log_message& 6 years ago
gabime 0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 6 years ago
gabime 6506b73523 Add noexcept to move ctor and operator= 6 years ago
gabime 01eb59ca9b Removed spdlog::default_level and its usage in registry 6 years ago
gabime ffb7c317b5 Fix #1176 again 6 years ago
Gabi Melman bb7420fc22
Update logger.h 6 years ago
gabime 0df9164e7c Fix #1176 6 years ago
Charles Milette eb51f37c67
Fix ambiguous overload errors 6 years ago
Charles Milette 4ef4d0659d
Improve correctness of convertion checks 6 years ago
Charles Milette 2ce9a3f70f
Add overload to logger when T can be statically converted to wstring_view_t 6 years ago
gabime a7ba6e447d clang-format 6 years ago
gabime 3c30f77d31 limit default error handler to 1 message/second to avoid flood 6 years ago
gabime bcb6484062 Removed redundant include statements 6 years ago
gabime 11472eddbc Catch sink exceptions without affecting other sinks 6 years ago
gabime 8d758add63 Relace remaining const char* with string_view_t in the API 6 years ago
Matthias Moulin 5a7bcd0a4f
Update logger.h 6 years ago
Charles Milette f529afa625
Use stack allocated space when possible 6 years ago
Charles Milette 3bcd3cef2f
Fix deprecation warnings in filename_to_str 6 years ago
gabime 74e2aa9c66 Micoro optimize macros 6 years ago
gabime 78c833a09f clang-format 6 years ago
gabime 09cb45001b Added copy ctor and assignment to logger 6 years ago
gabime 33a42202c7 Replace string pointer with string_view in log_msg 6 years ago
gabime bcfa9241b8 Updated copyright headers 6 years ago
gabime 38f6b5ea71 Keep clang-tidy happy 6 years ago
gabime 52b6be0dfe Added logger ctor that accepts only name(empty logger) 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 ff89f1476d Restored error_handler as std::function 6 years ago
gabime 13db9d9452 Fix build 6 years ago
Gabi Melman 6bec53dcd2
Update logger.h 6 years ago
gabime bfbb4e4050 some err handler cleanup 6 years ago
gabime 2aceb13f3e fix support for utf8 logging under win32 6 years ago
gabime 17f9cdd401 static lib wip 6 years ago
gabime e2e3df9013 static lib wip 6 years ago
gabime ef8773a89b Moved logger_impl back into logger.h 6 years ago
DanielChabrowski a6229d9e87 Remove pointless log with enable_if 7 years ago
Jerome Meyer ce8cf1e152 Fix typos 7 years ago
gabime bd6d88b884 Removed uneeded locale include 7 years ago
gabime dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 7 years ago
gabime a31719b546 clang-format 7 years ago
gabime f2305fe5bf Support for source file/line logging 7 years ago
gabime 9b5b4cd505 comment 7 years ago
gabime c5069135d7 Improved compile time level support 7 years ago
gabime 0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 7 years ago
gabime 240a58fd6e Fixed issue #881 7 years ago
gabime 392d126372 Renamed string_view_type -> string_view_t 7 years ago
gabime 1bdd556d3b code formatting 7 years ago
gabime 9daad800a8 Fix mingw compilation 7 years ago
gabime 8d2c956563 Optimize log(const T&) if can be statically converted to string_view 7 years ago
gabime 0584d6d89b Removed logn declaration 7 years ago
Jerome Meyer cb71fea0f6 Use fmt::string_view when logging a C string to avoid unnecessary copy 7 years ago
gabime 36112371c0 Reverted const qualifier to log_msg& args, fixed issue #849, and added counter tests 7 years ago
gabime 2fa538779f Fixed static_assert 7 years ago
gabime b7a6659451 code formatting 7 years ago
gabime 102c31a04c Accecpt iterators by value in logger ctor insted of ref 7 years ago
gabime 8b42b7d269 Fix support for wchar to utf8 under windows (fix issue #851 and #764) 7 years ago
gabime a06d32ae19 Fixed clang-tidy warnings 7 years ago
gabime 5d7845c138 Added "clone()" support to loggers 7 years ago
gabime 91d8869f36 Added "clone()" support to loggers 7 years ago
gabime 33329c80a9 code formatting 7 years ago
gabime 693103af9c support set_formatter in spdlog.h 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime ddb3002bc1 Added non const sinks() function to support addition/removal of sinks from existing logger 7 years ago
gabime 9df2bd256e 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 16ee72da7c clang format 7 years ago
gabime 81f29a9a7a Fixed wchar support in messages 7 years ago
gabime 4f1ce9189f Fixed issue #747 7 years ago
gabime 775e410b00 Fixed issue #747 7 years ago
gabime c9331594bb Renamed file to pattern_forammter.h and fixed utc support 7 years ago
Gabi Melman 3ebdb2fd8b
Update logger.h 7 years ago
gabime 0c19bdd772 pattern per sink and pattern caching 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 c962c88342 Fixed linux port of v1.x 7 years ago
gabime 11e068d7a3 Added missing #include 7 years ago
gabime 6f4cd8d397 thread_pool and refactoring async 7 years ago
gabime 7eb6ca6337 formatting 8 years ago
Gabi Melman fe8a519434
Update logger.h 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 5355bd3a8f readability-named-parameter 8 years ago
Daniel Chabrowski 9ce66f2c9a modernize-pass-by-value 8 years ago
Daniel Chabrowski ad624432d8 google-explicit-constructor 8 years ago
gabime f5939f9e56 astyle 8 years ago
Gabi Melman 613f024d42
Removed forgotten *_if declarations 8 years ago
gabime dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 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
gabime 709948ff4a Fixed issue #527 8 years ago
Alexei Pastuchov 8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
8 years ago
Asit Kumar Dhal b463b06ab5 conditional logging for all levels 8 years ago
Asit Kumar Dhal 9a189badbd conditional logging implementation 8 years ago
Asit Kumar Dhal ed7c3a83f8 conditional logging implementation 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
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 8 years ago
Tennn f8d509d010 Fixed issues 449
Please check it
8 years ago
Alexander Zilberkant f29ff77ae7 implement message counter feature
adds %i logger pattern for printing log message sequence ID
8 years ago
gabime 1d6842f0f9 bugfix in color detection and astyle 8 years ago
Sidyhe 8ee6d38501 add wide string to utf8 string support 8 years ago
gabime 0c276beaaf astyle 9 years ago
gabime 397d4866b3 Fixed issue #396 and added some tests to catch it 9 years ago
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.
9 years ago
gabime 0a3a3f0ee2 Updated comment on thread safety 9 years ago
Therenall 66b08294ca Exposed logger sinks. 9 years ago
gabime 3afabcd17e astyle 9 years ago