Commit Graph

208 Commits (12ee35a3d1db881bbd30ce64b0591e80ce6fa103)

Author SHA1 Message Date
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
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 7ddfb2b877 fixed macros and other stuff for the no-streams branch 9 years ago
gabime 7885aa478c no streams 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 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 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 06ffde6333 Fixed flush of logs in async mode 10 years ago
Denis Ivaykin 63e0012e34 flush in logger 10 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
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 26cf0b38dd support for API of the form logger.info() << .. 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 7ded05f365 log_msg faster move 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 1814c31ff3 fixed gcc warning about unordered intialization 11 years ago
gabi 58688d7d1c Removed close() from sink to have RAII semantics 11 years ago
gabime 74aae4f368 readme 11 years ago
gabi 567e85e6d4 bench 11 years ago
gabime 2d075bcfda bench 11 years ago
gabi 31971bf63b updated example and added more creation functions 11 years ago
gabi c7b8c762fb spdlog 11 years ago