Commit Graph

451 Commits (99ca7f1cbe98e0a8f153951a3c24e03f034c7198)

Author SHA1 Message Date
ThePhD d98d54896b use if statement instead of switch (changes of adding new time specifications outside of standard are probably unlikely anyhow)
8 years ago
ThePhD 18a0455b91 _pattern was never set... but it was also never used. Intentional by @gabime, or a reflection of a refactor with some data member left behind?
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
9 years ago
gabime 361344912e Refactored message counter a little
9 years ago
gabime 6cc7e7382e astyle
9 years ago
gabime 40fc5becff fixed compilation
9 years ago
gabime 3899e8a560 fixed compilation warning
9 years ago
gabime 98addad888 Disable colors if terminal no attached and simplfy ansicolor_sink
9 years ago
Alexander Zilberkant ef6eb376d3 disable message counter feature in tweakme.h
9 years ago
Alexander Zilberkant f29ff77ae7 implement message counter feature
9 years ago
Elias Kosunen c6c5a46560 Fix OSX builds of details/os.h
9 years ago
gabime def86e6e20 Fixed forgotten inline keyword
9 years ago
gabime 1d6842f0f9 bugfix in color detection and astyle
9 years ago
gabime eb92cc35df Merge branch 'master' of https://github.com/gabime/spdlog.git
9 years ago
gabime bd25f59a42 Don't use color escape codes if terminal doesn't support them in ansicolor_sink
9 years ago
Gabi Melman a39f71dbd4 Merge pull request #444 from alzix/minor-fixes
9 years ago
Alexander Zilberkant 8329d97d90 fix indentation
9 years ago
Alexander Zilberkant 6547675e43 Revert "Merge pull request #441 from alzix/count_discarded"
9 years ago
Gabi Melman 038733345a Merge pull request #441 from alzix/count_discarded
9 years ago
Alexander Zilberkant 42258a1059 move discarded message handling to a dedicated function
9 years ago
Alexander Zilberkant 0aeaf9e28e add an option to warn about discarded messages
9 years ago
Sidyhe 8ee6d38501 add wide string to utf8 string support
9 years ago
Barrett 84a4f56eae Allow compiler to select an strerror_r stringify
9 years ago
gabime e9b8286714 Merge branch 'master' of https://github.com/gabime/spdlog.git
9 years ago
gabime 81965bc300 Fixed some analyzer warnings
9 years ago
Jean-Michaël Celerier 53138c20fb Add an optional final qualifier to types
9 years ago
Gabi Melman 8b11ffe163 Merge pull request #413 from odeits/patch-3
9 years ago
odeits 8d5ecc1b58 Fix typo immediatly immediately
9 years ago
odeits 682d2e057f Fix typo in comment Unkown to Unknown
9 years ago
Gabi Melman 15af514951 Update file_helper.h
9 years ago
odeits ea359254d6 Fix typo Unkown to Unknown
9 years ago
Oleksii Mandrychenko d315bba1f8 Initialising members via constructor
9 years ago
Oleksii Mandrychenko b5d838cc32 - Reverting changes to mpmc queue
9 years ago
Oleksii Mandrychenko 6a41bc40af [#404] Reading past valid address with multisink logger
9 years ago
Gabi Melman 2b5c3615fd Update async_log_helper.h
9 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.
9 years ago
Takayama Fumihiko a4714a6571 use double-braces in std::array initialization
9 years ago
Ľubomír Carik fd8df5b820 Don't hardcode '.txt.' log file name suffix (resolve #333)
9 years ago
gabime 93d84e5d59 v0.12.0
9 years ago
Jean-Michaël Celerier ef665e959f Don't deduce return types for days / months
9 years ago
Jean-Michaël Celerier 06b8193a14 Add missing consts
9 years ago
Jean-Michaël Celerier a626ebbbec Replace static global std::string arrays by Meyer singletons. This improves thread-safety.
9 years ago
Gabi Melman e7ec922c0a Update async_log_helper.h
9 years ago
gabime 2d873785a5 astyle
9 years ago
gabime 92db8115b7 option to prevent child processes from inheriting log file desciptors (#define SPDLOG_PREVENT_CHILD_FD)
9 years ago
Gabi Melman af35f9c086 Merge pull request #330 from PMExtra/master
9 years ago
Gabi Melman 0e016882d9 Update os.h
9 years ago
PM_Extra b1a55ca3a4 Use the feature checking macros to detect thread_local support in clang.
9 years ago
PM_Extra f7574eb4c7 fixed compilation error in clang before version 8 (does not support thread_local keyword)
9 years ago
gabime 33494049a8 fixed compilation error in 2013 (does not support thread_local keyword)
9 years ago
gabime 5d23e88c16 astyle
9 years ago
gabime 6d8efa8d7f store thread_id in tls
9 years ago
gabime 343904b56d add missing include to widnows _getpid
9 years ago
gabime cf73f02eaf pid support (added the %P option to formatter)
9 years ago
gabime e12916c070 Fixed issue #317 (Build error on raspberry pi)
9 years ago
osx2000 3cd497ee95 extended conditional compilation to __SUNPRO_CC
9 years ago
osx2000 e9fc4ac095 Fully qualified std::this_thread::yield()
9 years ago
Chen Hayat 5259b3dbf4 Fix Klockwork compilation warning
9 years ago
Chen Hayat b4cb1febf2 removed external library changes
9 years ago
Chen Hayat 0c16b9ae1e Remove casting from previous commit and fix the following Klockwork issues:
9 years ago
gabime f14d1c002b astyle
9 years ago
gabime 0cfdad4d0b Windows console color support. Replaced color param in API with new functions
9 years ago
Guo Xiao 73e53c7cb6 Remove extra ';'
9 years ago
Guo Xiao 9b218d4d12 Convert off_t to size_t
9 years ago
gabime 12800ac466 fixed shadow warnings in gcc
9 years ago
gabime faa184ce24 Added #ifdef __ANDROID__ to spllog_impl.h
9 years ago
Therenall 66b08294ca Exposed logger sinks.
9 years ago
amir zamani 811eeef7a6 update os.h to fix filesize() on older win32
9 years ago
gabime e97621d61d Removed force_flush arg from everywhere. Use flush_on(level) instead
9 years ago
gabime b0f8230783 Fixed bug in basic_logger creating (passed truncate to force_flush arg)
9 years ago
gabime 5653e5c9d7 astyle
9 years ago
Hugh Wang 72a6fd65da Support direct creation of android logger.
9 years ago
Hugh Wang f2c9692438 Fix compilation on Android.
9 years ago
davide b67076fc85 added level_t to sink. Improves the flexibility of loggers with multiple sinks
9 years ago
Gabi Melman 01ef3d3114 Update async_logger_impl.h
9 years ago
Gabi Melman d01e288afc fix flush async flush
9 years ago
gabime 3afabcd17e astyle
9 years ago
gabime e562e001cf Removed force_flush arg from API (use flush_on(level) instead)
9 years ago
gabime 1df30a0733 support flush_on(..) in async loggers too
9 years ago
gabime 8cf39857ab style
9 years ago
gabime cb75569541 Fixed issue #266 (Improperly-formatted ISO8601 UTC offset for negative-offset timezones)
9 years ago
Sam Brkopac 0be736c7fc Added the ability to truncate the basic file logger.
9 years ago
gabime 332b7c0d7f astyle
9 years ago
gabime 4f52cc4dec async flush now waits for queue to be empty before returning
9 years ago
gabime dfa2c7a950 async flush now waits for queue to be empty before returning
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 2678c37b56 Move syslog support tests to one place.
9 years ago
gabime e556daebc3 better support for thread id in FreeBSD
9 years ago
gabime 86de264da9 Added support for syslog in FreeBSD
9 years ago
gabime 4efbd950d6 atyle
9 years ago
gabime 3af247fbd3 Added a way to iterate all registered loggers (issues #238 and #259).
9 years ago
gabime e7debaacd7 astyle
9 years ago
gabime 39cdd08a54 no exceptions while logging
9 years ago
Tony Narlock 98af71c585 Add FreeBSD compatibility defs
9 years ago
gabime 36ba06a75c cosmetic fix in utc_minutes_offset when throwing
9 years ago
gabime 74aede0c66 better support for file size in 64 bits
9 years ago
gabime 730f0e02a6 better support for file sizes in 32/64 bits
9 years ago
gabime b2c40fcedf Fixed issue #156 (use stat to check file existance under osx as well(
9 years ago
gabime 0ae66b5b28 support for external fmtlib
9 years ago
Gabi Melman 28ebdad367 Update os.h
9 years ago
gabime 1ac68e399a Fixed issue #245
9 years ago
gabime f5bde237dd Updated fmt lib to version 0d5ef5c2a66026409b0cfbafa1d2f46cdc5aa4d0
9 years ago
gabime 8e0892fa31 astyle
9 years ago
gabime c5c6baad74 Added errno description to sdlog exception strings
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
gabime a047b58e65 Added "basic_logger_mt/basic_logger_st" to the API
9 years ago
Kevin M. Godby e16cb511e5 Create a logger with a single sink.
9 years ago
Gabi Melman 5202a7806f Merge pull request #210 from GreatFruitOmsk/master
10 years ago
gabime 38c0ee018b astyle
10 years ago
gabime 9a9e9aace9 Merge branch 'master' of https://github.com/gabime/spdlog
10 years ago
gabime 80a432e646 cleaned common.h and moved some code around
10 years ago
gabime 58699a2bd4 astyle
10 years ago
gabime 10d5292bbb better support for custom eol
10 years ago
gabime 6760dcebc8 remove unneeded strlen when writing eol at end of each line (pass size of eol to write)
10 years ago
Gabi Melman fe8fc8c638 Merge pull request #211 from hvellyr/master
10 years ago
hvellyr b8425df76a Support custom eol style using a define in tweakme.h
10 years ago
gabime ea611f2d79 reduced spinning duation in async_log_helper
10 years ago
Kirill Leyfer 6603d5e31f Fix throwing exception if DYNAMIC_TIME_ZONE_INFORMATION fails under windows.
10 years ago
Philippe Serreault ee815042dd In async mode, worker thread can now execute an optional teardown callback upon exit.
10 years ago
Kevin M. Godby d9ff5df830 Moved flush call to logger::_log_msg() function.
10 years ago
Kevin M. Godby 6b966478c1 Automatically flush log if message level is above certain severity.
10 years ago
Gabi Melman 0143d9a92d Update async_log_helper.h
10 years ago
gabime 0d26359856 astyle
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
gabime 296623baa3 API for color support in console logger
10 years ago
gabime 12f6fd07e0 formatting
10 years ago
gabime cd90e3911e fix issue #189 spdlog redefines max as a preprocessor macro
10 years ago
gabime e5376c3c0f updated cppformat to latest version (52f89065e1843f4123198df326b480380d993312)
10 years ago
gabime 2f8e22d828 check if logger already exists in the registry before creating it
10 years ago
gabime becef922c2 add missing include
10 years ago
gabime 79451368cf Fixed issue #179 (Conflict with Boost.Asio) (by defining FMT_USE_WINDOWS_H=0 in format.h and preventing include of windows.h)
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
Sebastian Messmer 7b8d507615 Allow syslog logger on Mac OS X
10 years ago
gabime 0c7beb2e36 fixed issue #173 - timezone as output by %z option has a double negative sign
10 years ago
gabime e91e1b80f9 revert pull
10 years ago
derekxgl e248895254 use default move constructor/assignment for async_log_helper
10 years ago
gabime c7864ae5dc throw exception if DYNAMIC_TIME_ZONE_INFORMATION fails under windows instead of returning -1
10 years ago