Commit Graph

4446 Commits (17c0b57a0b74788c13cda526aed95be1034e2203)
 

Author SHA1 Message Date
Mihir Patel 17c0b57a0b
Merge 8a780f6dbc into f1d748e5e3 3 weeks ago
Angelio Mason f1d748e5e3
Remove the fileapi.h include in os-inl.h (#3444)
* Replaced fileapi.h include with windows.h, as instructed in https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers
Otherwise this causes compilation error on older sdks.

* Removed the fileapi.h include entirely, since windows.h is already included before

---------

Co-authored-by: MasonAngelio <MasonAngelio>
3 weeks ago
Vitaly 3edc8036db
Run tests in the order they are declared in the source file. (#3451)
Fixes an issue with running tests in random order in Catch2 3.9.0+.
3 weeks ago
Mihir Patel 8a780f6dbc Robust implementation for getting handles. 1 month ago
Mihir Patel ce53eaed7f Removed Extra Headers. 1 month ago
Mihir Patel d09e13d29d ANSI color sink on Windows 1 month ago
Mihir Patel 322b7af491
Merge branch 'gabime:v1.x' into v1.x 1 month ago
Mihir Patel 9ecdf5c8a1
Added timeout for TCP calls such as connect, send, recv (#3432)
* Now lets test on windows

* I guess testing on windows passes.

* Update tcp_client-windows.h

Added default value to argument

* Final edit

* Update tcp_client-windows.h

Changed improper misplaced includes.
1 month ago
Mihir Patel 731594394f
Update tcp_client-windows.h
Changed improper misplaced includes.
1 month ago
Mihir Patel e8984f6fdf Final edit 1 month ago
Gabi Melman 737347d2df
Update linux.yml 1 month ago
Alexander 4f2b3d52f9
Update README.md (#3437)
* Update README.md

add example showcasing 2 loggers and `spdlog::set_level()` 
which set level not only to default logger, but to all registed loggers

* Update README.md

* simplify

* simplify
1 month ago
Joshua Chapman 4397dac510
chore(cmake): add option to override CMAKE_DEBUG_POSTFIX (#3433)
This will make it possible to use the pkg-config with CMake debug build.
2 months ago
Gabi Melman 6fd67ce169
Update windows.yml
remove msvc 2019 build
2 months ago
Gabi Melman 4619e18a16
Update windows.yml 2 months ago
Gabi Melman a6215527f4
Fix ringbuffer tests for newline (#3436) 2 months ago
Mihir Patel 6b231754f2
Update tcp_client-windows.h
Added default value to argument
2 months ago
Mihir Patel 4f9b630d46 I guess testing on windows passes. 2 months ago
Mihir Patel 9397e31e77
Merge pull request #1 from LowLevelLore/tcp-timeout
Now lets test on windows
2 months ago
LowLevelLore de0d0dc3f4
Now lets test on windows 2 months ago
VZ 287333ee00
Remove unnecessary and inconsistent "final" from color sinks (#3430)
The use of "final" differed between ansicolor_sink and wincolor_sink,
resulting in the code inheriting from std{err,out}_color_sink classes,
which are defined as one or the other on different platforms, being able
to override most of the functions under non-Windows platforms, but not
under Windows.

This seems gratuitously inconsistent, so just remove all "final"
keywords from both classes, especially because there doesn't seem any
good reason to use it and the other sink classes don't use it (with the
exception of base_sink, which is special).

This also incidentally fixes using "final override" in most places but
"override final" in wincolor_sink.h.

Fixes #3429.
2 months ago
电线杆 ad725d34cc
Use std::getenv #3414 (#3415) 3 months ago
Gabi Melman e655dbb685
Fix issue #3408
Remove including core.h or base.h
3 months ago
gabime b18a234ed6 Fix coverity ci 4 months ago
Gabi Melman 5d89b5b91c
Update jetbrains logo (#3401)
* Update jetbrains logo
4 months ago
Gabi Melman 37ff466454
Add coverity scan to CI and fix warnings (#3400)
* Move callback function in thread_pool ctor

* Added const qualifiers to logger.h

* Remove unused includes from file_helper-inl.h

* Fix comments and remove unused include from helpers-inl.h

* Fix typo in comment for set_default_logger method.

* Use `std::move` for `old_logger` in `set_default_logger`.

* Use std::move in example

* Wrap `main` content in try block for exception safety.

* Added coverity to ci
4 months ago
Gabi Melman 677a2d93e6
Update test_stopwatch.cpp 4 months ago
Gabi Melman 6fa36017cf
Version 1.15.3 4 months ago
Gabi Melman c73b8cc400
Update comment 4 months ago
Gabi Melman 7ca6a4fb27
Update commemt 4 months ago
Gabi Melman 070e1c9747
Update comment 4 months ago
Gabi Melman 0d31acae28
Fmt 11.2.0 (#3399)
* Bump fmt to 11.2.0
4 months ago
Gabi Melman 943fcbd761
Register replace logger (#3398)
* Add register_or_replace(logger) to atomically replace logger in registry
* fix some  comments
4 months ago
Gabi Melman 7e022c4300
Feature 3379 (#3397)
* Fix #3379

* clang format
4 months ago
Hinageshi 548b264254
Fix warning C4530 (#3393)
* Fix warning C4530

* Rename FMT_EXCEPTIONS to FMT_USE_EXCEPTIONS
4 months ago
Tihran Katolikian 847db3375f
dup_filter_sink: remove notification_level argument; use last message log level for notification instead (#3390) 4 months ago
Dmitry Kozlovtsev bb8694b50f
Fix links for #3380 (#3381) 4 months ago
Christoph Gringmuth cec28bf839
Fix links to local reference. (#3378)
Enables local navigation in IDE and removes links to branch.
5 months ago
Gabi Melman bd0609d7a0
Update README.md 5 months ago
Christoph Gringmuth 1f4959c832
Fix link to wiki. (#3377) 5 months ago
gabime 48bcf39a66 Version 1.15.2 5 months ago
Gabi Melman 9c58257480
Fix zformatter on Apple and POSIX.1-2024 conforming platform (#3366)
* Add test case for #3351 (wrong GMT offset in SunOS/Solaris fallback)

* Fix #3352 (Missing test for Apple / POSIX.1-2024 chooses buggy workaround)

Apple platforms have had the tm_gmtoff-field at least since Mac OS X 10.0,
as are POSIX.1-2024 conforming systems, which are also required to support
it.

This has the unfortunate effect to use the SunOS/Solaris fallback, which
doesn't compute the correct value if the passed value of tm isn't the
current system time, i.e. localtime(::time()) (#3351).

* Fixed GMT offset test

---------

Co-authored-by: toh <toh@ableton.com>
5 months ago
gabime faa0a7a9c5 Bump fmt to version 11.1.4 5 months ago
Gabi Melman 10320184df
Fixed issue #3360 (#3361) 5 months ago
Александр 3335c380a0
Update README.md (#3338)
How to install this package in ALT Linux.
7 months ago
Gabi Melman f355b3d58f Fix test_daily_logger 7 months ago
Gabi Melman ac432c3602
Gabime/v1.15.1 (#3332)
* Updated bundled fmt to version 11.1.3

* Bump version to 1.15.1
7 months ago
Janusz Chorko 3c23c27d2d
Revert "fix: Compatibility with external fmtlib 11.1.1 (#3312)" (#3331)
This reverts commit 7f8060d5b2.
7 months ago
Ken Matsui ae1de0dc8c
Support custom environment variables for load_env_levels (#3327)
SPDLOG_LEVEL is currently supported to control log levels via
load_env_levels.

This patch adds support for other environment variable names, such as
MYAPP_LEVEL, for load_env_levels.
7 months ago
Gabi Melman 7cbf2a6967
Gabime/ansicolor sink improvements (#3323)
* Added lock to set_color_mode in asnicolor_sink

* Added const qualifiers to some ansicolor_sink functions
7 months ago