2016-02-01 11:40:43 +01:00
|
|
|
#
|
2018-04-16 10:50:14 +02:00
|
|
|
# spec file for package spdlog
|
2016-02-01 11:40:43 +01:00
|
|
|
#
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-01 11:40:43 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-03 13:46:30 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-02-01 11:40:43 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: spdlog
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
Version: 1.3.1
|
2018-04-16 10:50:14 +02:00
|
|
|
Release: 0
|
2016-02-01 11:40:43 +01:00
|
|
|
Summary: C++ header only logging library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/C and C++
|
2018-08-16 13:39:35 +02:00
|
|
|
URL: https://github.com/gabime/spdlog
|
|
|
|
Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
BuildRequires: benchmark-devel >= 1.4.0
|
2018-04-16 10:50:14 +02:00
|
|
|
BuildRequires: cmake
|
2019-04-16 16:00:04 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
BuildRequires: gcc-c++ >= 8
|
2019-04-16 16:00:04 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc8-c++
|
|
|
|
%endif
|
2019-05-28 07:16:20 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: ninja
|
2018-04-16 10:50:14 +02:00
|
|
|
BuildRequires: pkgconfig
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
BuildRequires: pkgconfig(fmt)
|
2016-02-01 11:40:43 +01:00
|
|
|
|
|
|
|
%description
|
2018-08-13 15:35:56 +02:00
|
|
|
This is a packaged version of the gabime/spdlog header-only C++
|
|
|
|
logging library available at Github.
|
2016-02-01 11:40:43 +01:00
|
|
|
|
2018-08-13 15:35:56 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2018-04-16 10:50:14 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2018-08-13 15:35:56 +02:00
|
|
|
Requires: libstdc++-devel
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
Requires: pkgconfig(fmt)
|
2018-08-16 13:39:35 +02:00
|
|
|
Provides: %{name} = %{version}
|
2018-04-16 10:50:14 +02:00
|
|
|
|
2018-08-13 15:35:56 +02:00
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains C++ header files for developing
|
|
|
|
applications that use %{name}.
|
2016-02-01 11:40:43 +01:00
|
|
|
|
|
|
|
%prep
|
2018-08-13 15:35:56 +02:00
|
|
|
%autosetup
|
|
|
|
find . -name '.gitignore' -exec rm {} \;
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
sed -i -e "s,\r,," README.md LICENSE
|
2016-02-01 11:40:43 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-16 16:00:04 +02:00
|
|
|
export CXX=g++
|
|
|
|
test -x "$(type -p g++-8)" && export CXX=g++-8
|
2019-05-28 07:16:20 +02:00
|
|
|
%cmake -G Ninja \
|
|
|
|
-DSPDLOG_BUILD_TESTS=ON \
|
|
|
|
-DSPDLOG_BUILD_BENCH=OFF \
|
|
|
|
-DSPDLOG_FMT_EXTERNAL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DSPDLOG_BUILD_EXAMPLES=OFF \
|
|
|
|
..
|
|
|
|
%ninja_build
|
2016-02-01 11:40:43 +01:00
|
|
|
|
|
|
|
%install
|
2019-05-28 07:16:20 +02:00
|
|
|
%ninja_install -C build
|
2016-02-01 11:40:43 +01:00
|
|
|
|
2018-04-16 10:55:03 +02:00
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
2016-02-01 11:40:43 +01:00
|
|
|
%files devel
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
%if 0%{?sle_version} > 120200
|
2018-04-16 10:55:03 +02:00
|
|
|
%license LICENSE
|
Accepting request 677102 from home:alois:branches:devel:libraries:c_c++
- Update to version 1.3.1
* Fix google benchmark link error when compiling the
bechmarks. Thanks @myd7349 (#961, f4c737e)
* Fix spdlog not printing message if SPDLOG_NO_THREAD_ID is
defined. Thanks @scribam (#970, f4c737e)
* Fix depending on the order of inclusion of spdlog.h. Thanks
@gocarlos (#959, 23fdc0e)
Version 1.3.0
Improvements:
* Upgraded to the latest and greatest fmt library version
5.3.0.
* New API for default logger spdlog::trace(..),
spdlog::debug(..), spdlog::info(..), etc.
For convenience, spdlog now creates a default global logger
(to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..),
spdlog::debug(..), etc directly without any preparations.
Its instance can be replaced to any other logger
(shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");
* Alignment support in log patterns.
Each pattern flag can be aligned by prepending a width
number(upto 128).
Use-(left align) or = (center align) to control the align
side:
align meaning example result
%<width><flag> Align to the right %8l " info"
%-<width><flag> Align to the left %-8l "info "
%=<width><flag> Align to the center %=8l " info "
* Support for logging source filename, line number, and
function name (thanks @possiblyhuman for contributing to this
effort)
flag meaning example
%@ Source file and line (use
SPDLOG_TRACE(..),SPDLOG_INFO(...) etc.) my_file.cpp:123
%s Source file (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) my_file.cpp
%# Source line (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc.) 123
%! Source function (use SPDLOG_TRACE(..),
SPDLOG_INFO(...) etc. see tweakme for
pretty-print) my_func
* Support for compile time check of log levels using
#define SPDLOG_ACTIVE_LEVEL <level>.
Use LOG_TRACE(..), LOG_DEBUG(..), LOG_INFO(..), etc. to
enable.
Those macros check at compile time the log level and
translate to empty statement if the log level is not high
enough. Even if a log macro evaluate to a log call, the
macro will check at runtime the level before evaluating
its arguments.
So for example the following won't evaluate
some_costly_function() because the logger's level is error:
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
..
spdlog::set_level(error);
SPDLOG_DEBUG("Some costly arg: {}",
some_costly_function());
* CMake improvements. Thanks @dpacbach (85b4d7c, f5dc166 ).
* Numerous small performance optimizations.
* Global option that disables global registration of loggers
set_automatic_registration(bool). Thanks @pabloariasal
(#892).
* Optimize logging of C strings by using string_view to avoid
unnecessary copy. Thanks @peergynt (cb71fea).
* Use google benchmark to test latencies.
Fixes:
* logger::error_handler() should be const (#881, thanks
@shoreadmin for reporting)
* Cleanup header file: remove log_msg.h include from
fmt_helper.h. Thanks @peergynt (1b391cc)
* Fix log_msg constructor doesn't initialize all fields (#888.
Thanks @curiouserrandy for reporting).
* Change log_msg&& to log_msg& params. Thanks @rwen2012
(794a636)
* Fix typo in Android example. Thanks @ZaMaZaN4iK (f5a2725)
* Fix Compiling error VS2017 #902 (Thanks @JaNurz for
reporting).
* Fix thread id is prefixed with zeros #908 (Thanks
@klrakiranpradeep for reporting).
* Fix and optimize usage of fmt::internal::count_digits(..)
for better support 32/64 bits. Thanks @DanielChabrowski
(c7f42d1, f1ab6fe).
* Better handling of rotation errors (b64e446).
* Do not attempt to default operator= when it is implicitly
deleted. Thanks @dpacbach (63a475d).
* Make an implicit cast from int --> uint32_t explicit. Thanks
@dpacbach (a6152eb).
* Enable testing in the Travis config file. Thanks @dpacbach
(f5dc166).
* Fix the text alignment in the example. Thanks @bzindovic
(d6086da4856df510657ffe4ef6b894e902b4b83).
* Fix typos. Thanks @peergynt (ce8cf1e).
* Fix handling of external fmt lib in cmake. Thanks @cneumann
(084bc72).
* Fix typo in file_helper.h. Thanks @brridder (fb702f9).
- Use system fmt library
- Update to version 1.2.1:
* Fix a compilation error of dist_sink.h
- Update to version 1.2.1
* This fixes a compilation error of dist_sink.h (#864) .
Thanks @DimRochette !
Version 1.2.0
Improvements:
* Upgraded to latest fmt version 5.2.1.
* Binary data logging using spdlog::to_hex(binary_data). Many
types of std::container<char> can be logged in hex. See usage
examples.
* Added logger->clone() to ease the creation of new loggers
from an existing one.
* Numerous micro optimizations across the lib.
* Added set_sinks method to dist_sink for atomic updating set
of sinks in dist_sink. Thanks @jwnimmer-tri .
* Improved CmakeLists.txt to better handle third-party usage.
Thanks @taketwo .
Fixes:
* Fixed wchar logging (supported only in windows. #851 , #764).
* Fixed registry test. Thanks @DanielChabrowski .
* Removed invalid files from tests.sln. Thanks @yhchen .
* Some fixes to console_globals.h includes. Thanks
@DanielChabrowski
* Don't deny access to log files from other processes under
windows. Thanks @eruiz.
* Pessimizing move remove. Thanks @maciekgajewski
* ansicolor_sink.h - add missing sink include. Thanks
@AlexanderDalshov .
* Improved rotating sink error handling.
* Fixed Readme. Thanks @blackball .
* Fixed some clang tidy warnings.
- Update to version 1.1.0:
* Bug fixes:
+ Fixed race condition in async-factory.
+ Fixed bug in spdlog_ex implementation.
+ Fixed race condition in the unit tests.
* Improvements:
+ Some micro optimizations.
+ Improve and fix CMake issues.
+ Added overrun_counter() to the async thread pool queue
+ Fixed some clang tidy warnings.
- Cleanup spec file from clutter
- Update to version 1.0.0
- Highlights
* Include what you need: Reduce compilation times by including
only the minimum required. Users can now to include only
the actual sinks/features they need from spdlog/sinks folder.
* Upgrade to fmt lib version 5.1
* Support for custom formatting per sink - each sink can have
it's own formatting and level using sink->set_pattern(..) or
sink->set_formatter(..).
* async logging - thread pool - async loggers now share a global
thread pool by default.
* periodic flusher: spdlog::flush_every(seconds) to periodically
flush all registered loggers.
* Improved performance - by caching some recently used values in
the pattern formatter.
* Ability to add sinks to a logger after its creation
(but it is not thread safe to do so - so use with caution).
- Breaking changes
* Include what you need. For example to use basic_logger add
#include "spdlog/sinks/basic_file_sink.h"
* To use async loggers - include "spdlog/async.h"
* Replaced set_async_mode(..) with factory template.
* Removed printf support.
* Removed warmup/teardown functions from async.
* Custom sinks inheriting from sinks::base_sink need to format
(if needed) the message before sending to their target.
* Added clone() virtual function to the formatter interface.
* Removed support for #define SPDLOG_NO_REGISTRY_MUTEX
- Remove excess hyping from description.
- run unit tests in the %check target
- install LICENSE as a %license, not a %doc
- Update to version 0.16.3
* Fix sleep issue (#609) under MSVC that happens when changing
the clock backwards (pull #610) - Thanks @joaomoreno
* Ensure that marcos always expand to expressions (pull #604) -
Thanks @sam-lunt
* Add global flush_on function (pull #605) - Thanks @sam-lunt
* Fix conversion warning (#595, pull #596) - Thanks @Broekman
version 0.16.2
* Fixed a bug in extracting log files extension (#589) - Thanks
@fcharlie
version 0.16.1
* Fixed the version strings to 0.16.1 in spdlog.h and
CMakeLists.txt
* Fixed compiler warning in tests - Thanks @horar
version 0.16.0
* Rotating and daily log files keep their extension (e.g
"mylog.3.txt" and not "mylog.txt.3")
* Optional support for printf formatting (enabled using #define
SPDLOG_FMT_PRINTF) - Thanks @fogo
* Async log: increased sleep to to 500ms the worker in loop
when the queue is empty
* Fixed thread safety bug in flush() - added lock on flush in
base_sink
* Breaking change: Removed all *_if functions (trace_if,
debug_if, info_if,..) because they are redundant and
confusing way to preform simple if
* Swallow only std::exceptions. report about, and re-throw
other, unexpected exception types.
* Support msvc_sink on all windows compiler (windebug-sink) -
Thanks @jpcima
* Added facilty param for syslog - Thanks @adubovikov
* correct include path for sink/syslog_sink.h - Thanks @jpcima
* Fix include paths - Thanks @daylanKifky
* Some fixes in the async queue size estimation - Thanks
@Subenle
* Fixed cygwin support
* Adding additional build environments for AppVeyor- Thanks
@rkollataj
* Fix warnings which are caused by C style cast - Thanks
@knowledge4igor
* Make short month names match in length - Thanks @berkus
* Fix typos in code and comments - Thanks @berkus
* Fixed missing i_formatter implementation
* Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging - Thanks
@hestad
* Added formatter for unix epoch time in seconds (%E format
flag) - Thanks @jasonbeach
* Compiler-dependent line numbering in SPDLOG_TRACE - Thanks
@elelel
* Improved cmake and CMakeLists.txt - Thanks @mrpelotazo and
@Lectem
version 0.14.0
* Upgraded the bundled fmt lib to version 4.0.0
* Fixed crash in async logger in older gcc version 4.8.5
(268222e).
* Fixed various sanitizer warnings.
* Improved Android support (#422, #427).
* Add an optional final qualifier to types (#425) for potential
compiler optimisations.
* Support for Alpine Linux (#435, #436).
* Add wide string to utf8 string support (#442).
* Don't use color escape codes if terminal doesn't support them
bd25f59 .
* Optional message counter feature (#445).
* Fix OSX builds of details/os.h (#447).
* Fix vs 2015 build error (#449).
* UTC support (#451).
* MinGw build fix (#456).
* Add create_async factory functions for async loggers (#459).
* Conditional logging implementation (#460).
* More meaningful thread id for OSX (#463).
* Add set_color to ansicolor_sink (#465).
* Ability to override log level names in the log messages
(#473).
* Added TRACE_IF and DEBUG_IF macro definitions when TRACE_ON
and DEBUG.
* Fixed background color bug in windows terminal (#484).
* Gentoo support (#502).
* Fixed warning for missing enumeration value in tests (#488,
#490).
* Fixed numerous typos in code and comments.
version 0.13.0
* Bumped the bundled fmt library to version 3.0.1.
* Fixed issue #333 (unexpected appending of "txt" at the end of
a log filename).
* Fixed issue #396 (custom error handler not called in async
loggers).
* Fixed issue #403 (ambiguous warnings on some compilers).
* Use double-braces in std::array initialisation.
version 0.12.0
* Added %P (process Id) to format string
* Exposed logger sinks via logger->sinks().
* Windows native console color support.
* Fixed vc warning on x64 build
* Better support for for older win32 targets (WinXP/Win2003)
* Fixed issue #300
* Fix issue #315
* Fix issue #317 (Build error on raspberry pi)
* Better cmake support : list spdlog's content in IDEs
* Fix compilation error C2664 on VS2013
* Store thread_id in tls for better performance
* Use the feature checking macros to detect thread_local
support in clang.
* Added option to prevent child processes from inheriting log
file desciptors
* Added SPDLOG_VERSION` macro to spdlog.h
* Replaced static global std::string arrays by Meyer singletons
for better thread safety
version 0.11.0
* sink log levels
* various bug fixes
version 0.10.0
* No exceptions will be thrown while logging (with optional
error handlers).
* FreeBSD support.
* Solaris support.
* syslog disabled by default for faster compilation.
* Bug fixes and improvements.
version 0.9.0
* cosmetic fix in utc_minutes_offset when throwing
- a c++ header only logging library
OBS-URL: https://build.opensuse.org/request/show/677102
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=18
2019-02-24 16:06:30 +01:00
|
|
|
%else
|
|
|
|
%doc LICENSE
|
|
|
|
%endif
|
|
|
|
%doc README.md
|
2018-04-16 10:50:14 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2016-02-01 11:40:43 +01:00
|
|
|
|
|
|
|
%changelog
|