Commit Graph

127 Commits (22f85deb2c1b661ec9ec4194442935b88ec23dfd)

Author SHA1 Message Date
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
Costin Manolache f4f3e3fb66
Use __ANDROID__
Based on review feedback.
8 years ago
Costin Manolache 23dd8d3559
Allow compilation on platforms with unwind (android) 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
Asit Kumar Dhal 3a40f0c34d fixed length and upper case log level tags 8 years ago
Gabi Melman 9470bdd3ec Update common.h 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
Jean-Michaël Celerier 4da5fa256c add SPDLOG_FINAL information in tweakme.h 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
Gabi Melman 7481a8ecf7 Update common.h 9 years ago
Gabi Melman 904bed92c3 Added SPDLOG_VERSION macro to common.h 9 years ago
Gabi Melman 9eee823041 Fix issue #315 9 years ago
Gabi Melman 541dd88a97 Update common.h 9 years ago
Gabi Melman ca928bc1b0 Fix issue #295
vs 2013 not supports std::atomic_int
9 years ago
gabime b13735dc22 astyle 9 years ago
gabime 20cb73e9da disable syslog by default (enable by #define SPDLOG_ENABLE_SYSLOG ) 9 years ago
Nazım Can Bedir 097ba5a359 Add basic support for Solaris. 9 years ago
Nazım Can Bedir e277f9b05c Make syslog backend tweakable. 9 years ago
Nazım Can Bedir 2678c37b56 Move syslog support tests to one place. 9 years ago
gabime 39cdd08a54 no exceptions while logging 9 years ago
gabime 0ae66b5b28 support for external fmtlib 9 years ago
Gabi Melman f702dce601 Update common.h 9 years ago
gabime 8e0892fa31 astyle 9 years ago
gabime c5c6baad74 Added errno description to sdlog exception strings 9 years ago
gabime e5032c8db5 fixed SPDLOG_TRACE under gcc (isue #241) 9 years ago
gabime 30326dad37 removed level defines 9 years ago
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 9 years ago
gabime 5650f10bab DEPRECATED: operator<< API 9 years ago
gabime 80a432e646 cleaned common.h and moved some code around 9 years ago
gabime 10d5292bbb better support for custom eol 9 years ago
gabime cae43ffef5 fixed issue #199 (_MSC_VER update for vs 2015 to use noexcept instead of throw()) 9 years ago
gabime 0d26359856 astyle 9 years ago
gabime 083d6c0d2f rename atomic level type name 10 years ago
gabime 974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 10 years ago
gabime 19dae96985 wchar filenames support - minor improvements 10 years ago
unknown 113ebcfd97 Add the SPDLOG_USE_WCHAR tweak to enable support for Unicode names on Windows. Refs #111 10 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 077c3095eb Added missing standard header includes. 10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
gabime cadd181d8d Reverted pull #111 - wchar support under windows - it pollutes global namespace with new defines 10 years ago
Ilya Kulakov d905ad915f Use only SPDLOG_USE_WCHAR to control whether wchar_t is enabled. 10 years ago
Artem Martynovich 787aa46693 Disable usage of wchar_t in tests. 10 years ago
Artem Martynovich 0e5c4b9de4 Fix Unix build. Use S("...") instead of L"..." for better compatibility. 10 years ago
Artem Martynovich 2b59393bda Add wchar_t support for Windows. 10 years ago
gabime b715378ff5 Added tweakme.h - enable users to enable/disable features at compile time 11 years ago
gabime 8da33db62f Removed redundant "using log_thread_id=size_t" 11 years ago
gabime 4dd31bf031 fixed pedantic gcc errors 11 years ago
gabime 25afbd79b2 Added compile time option to turn off thread id (#define SPDLOG_NO_THREAD_ID in common.h) 11 years ago
gabime 0684b4f378 use size_t to better represent thread id across platforms 11 years ago
gabime 147ce4c80d #define SPDLOG_NOEXCEPT throw() under visual studio 11 years ago
Gabi Melman 47e695d2fc Update common.h 11 years ago
Gabi Melman 6b0ef15644 Do not use CLOCK_REALTIME_COARSE by default 11 years ago
gabime dae66133c6 comment about clock 11 years ago
gabime 0d7570c745 comment about clock 11 years ago
gabi fb67e571f5 Under linux, use the much faster CLOCK_REALTIME_COARSE clock by default (SPDLOG_CLOCK_COARSE is defined in common.h) 11 years ago
Denis Ivaykin 2f34de820b coarse clock, short log level 11 years ago
gabi b74b28f5c6 added includes to common.h 11 years ago
gabime 9f34c58b3e comments 11 years ago
gabime 89afa909e1 shortened enum policy name and moved into common.h 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 1e7814295b fixed noexcept in visual studio 11 years ago
Jens Breitbart 67b633880b Replaced throw() with noexcept and removed some unneeded ';'. 11 years ago
gabime 92f2b7556e syslog improvments 11 years ago
Gabi Melman 3b61f50cbf Merge pull request #20 from fooinha/syslog-openlog
Syslog openlog
11 years ago
fooinha 375b88c191 Optional arguments for syslog_logger factory. 11 years ago
gabi 348390f90d Added debug macros 11 years ago
gabime ece27ac952 astyle 11 years ago
Arnaud Kapp 67eef26c26 Add a syslog() based sink for Linux.
This commit introduce a new sink: syslog_sink.
This sink is Linux only, and will write log entries to the system
logger, using the syslog() library call.

It is instanciable using spdlog::syslog_logger(name). Note that
the suffix _st or _mt is not present, as syslog() is thread-safe.

I also applied @gabime reviews and added license header.
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
gabime 74aae4f368 readme 11 years ago
gabime e8403e17df astyle 11 years ago
gabi 31971bf63b updated example and added more creation functions 11 years ago
gabi c7b8c762fb spdlog 11 years ago