Commit Graph

144 Commits (ef8773a89b63e956863fb4cee15d3265960f18d8)

Author SHA1 Message Date
gabime 3c7103d90d Format 7 years ago
gabime 78ea362e27 Don't rethrow after catch(...) 7 years ago
gabime c962c88342 Fixed linux port of v1.x 7 years ago
gabime 6f4cd8d397 thread_pool and refactoring async 7 years ago
gabime 200815892f Fix clang-tidy warnings about missing braces around if and for statements 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
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 9ce66f2c9a modernize-pass-by-value 8 years ago
Daniel Chabrowski 68f91822ed performance-unnecessary-value-param 8 years ago
Emad William Farag 55680db160 Support for custom EOL per formatter 8 years ago
gabime 4ca6991828 astyle 8 years ago
gabime 6d355fd602 report about unknown excepptions before rethrow 8 years ago
Gabi Melman 88fe218741
Update logger_impl.h 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
gabime c41b6d28b5 astyle 8 years ago
gabime fd170b0fe1 catch(...) exceptions, report it, and rethrow 8 years ago
gabime 8ca1d84a32 Removed catch(..) from the codebase. Catch only std::exception 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
Gabi Melman fbb8244f7d Merge pull request #533 from manuel-schiller/patch-1
rethrow unwind exception
8 years ago
manuel-schiller 039b34e83a rethrow unwind exception
On Linux with pthread library spdlog causes an SIGABORT and crashes
the application in case it catches a thread specific cancellation
exception in a critical execution phase while in a try/catch block
in spdlog/detail/logger_impl.h

The exception is caught by some general catch(...) clause where
it is NOT rethrown.

However rethrowing these kind of exception is mandatory, otherwise
an abort will be caused by the glibc.
8 years ago
gabime 709948ff4a Fixed issue #527 8 years ago
fogo e8b7f4194a Moved printf include to fmt.h 8 years ago
fogo ee525f9bef allow printf style logging
* tests updated for printf style
* tests makefile support printf style
8 years ago
John Andre Hestad 375b7fdda5 Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging 8 years ago
Alexei Pastuchov 8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
8 years ago
Asit Kumar Dhal de0154c525 Test Case for conditional logging 8 years ago
Asit Kumar Dhal 380233b727 mend 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
gabime 361344912e Refactored message counter a little 8 years ago
gabime 6cc7e7382e astyle 8 years ago
Alexander Zilberkant ef6eb376d3 disable message counter feature in tweakme.h 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
Oleksii Mandrychenko d315bba1f8 Initialising members via constructor 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
Therenall 66b08294ca Exposed logger sinks. 9 years ago
gabime 5653e5c9d7 astyle 9 years ago
davide b67076fc85 added level_t to sink. Improves the flexibility of loggers with multiple sinks 9 years ago
gabime 3afabcd17e astyle 9 years ago
gabime 1df30a0733 support flush_on(..) in async loggers too 9 years ago
gabime e7debaacd7 astyle 9 years ago
gabime 39cdd08a54 no exceptions while logging 9 years ago
gabime 8e0892fa31 astyle 9 years ago
gabime 4f9b4d0145 fixed bug in extra formatting done in async mode 9 years ago
gabime febdf7324f astyle 9 years ago
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 9 years ago
gabime 7885aa478c no streams 9 years ago
gabime 5650f10bab DEPRECATED: operator<< API 9 years ago
Kevin M. Godby d9ff5df830 Moved flush call to logger::_log_msg() function. 9 years ago
Kevin M. Godby 6b966478c1 Automatically flush log if message level is above certain severity. 9 years ago
gabime 0d26359856 astyle 9 years ago
gabime 974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 10 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 077c3095eb Added missing standard header includes. 10 years ago
Kevin M. Godby 196689f720 Fixed header include problems. 10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
gabime 0f76db880e astyle 10 years ago
gabime 64850dcb0c small style fixes 10 years ago
Denis Ivaykin 63e0012e34 flush in logger 10 years ago
gabi 06ef01f867 use std::memory_order_relaxed when reading logger's level 11 years ago
gabi 4fd1ac8ac5 Added support for logger->info(const T&) call style 11 years ago
gabime 28da625a6f removed the confusing stop() function 11 years ago
gabime 40a55b8e34 astyle 11 years ago
gabime d163b8c45a astyle 11 years ago
gabime b1867cfba3 log levels now lowercase 11 years ago
gabi 348390f90d Added debug macros 11 years ago
gabi 4637cf35df Improved perf by using const char* instead of std::string& when accepting format strings 11 years ago
gabi d0dcc13f7c small cleanup 11 years ago
gabi 26cf0b38dd support for API of the form logger.info() << .. 11 years ago
gabi 58970bf1ea Rethrow cppformat exceptions as spdlog_ex with description of the bad format string 11 years ago
gabi 45628c8ec3 logger main interface now is in the form logger.info(fmt, args) 11 years ago
gabi 4cb6aa90b2 New async_logger class and API 11 years ago
gabi fd3f13cd90 revert sink accepting only char* and size_t 11 years ago
gabi 66039c7c0e Simplified sink interface - to just accept char* and size_t 11 years ago
xaqq e4adba854c Add NOTICE, ALERT and EMERG log level.
This commit introduces 3 new log level. Thoses are:
    + NOTICE, which is a bit worse that INFO, but still not a warn.
    + ALERT, for case worse that critical.
    + EMERG, application is unusable.

With those 3 log levels, spdlog now has all log level accepted by
the syslog() system call.
11 years ago
gabi 2ac49b90e6 Bug fix in registry 11 years ago
gabime 1814c31ff3 fixed gcc warning about unordered intialization 11 years ago
gabi c054aa7893 Bugfix - logger now has default formatter object at construction 11 years ago
gabi 58688d7d1c Removed close() from sink to have RAII semantics 11 years ago
gabime 74aae4f368 readme 11 years ago
gabime e8403e17df astyle 11 years ago
gabi 567e85e6d4 bench 11 years ago
gabi 31971bf63b updated example and added more creation functions 11 years ago
gabi c7b8c762fb spdlog 11 years ago