|
1 | | -# iceoryx v3.0.0 (UNRELEASED) |
| 1 | +# iceoryx vx.x.x (UNRELEASED) |
2 | 2 |
|
3 | | -## [v3.0.0](https://github.com/eclipse-iceoryx/iceoryx/tree/vx.x.x) (2025-03-16) |
| 3 | +## [vx.x.x](https://github.com/eclipse-iceoryx/iceoryx/tree/vx.x.x) (2025-xx-xx) |
4 | 4 |
|
5 | 5 | [Full Changelog](https://github.com/eclipse-iceoryx/iceoryx/compare/vx.x.x...vx.x.x) |
6 | 6 |
|
|
318 | 318 | iox::optional<iox::NamedSemaphore> semaphore; |
319 | 319 | auto result = iox::NamedSemaphoreBuilder() |
320 | 320 | .name("mySemaphoreName") |
321 | | - .openMode(iox::OpenMode::OPEN_OR_CREATE) |
| 321 | + .openMode(iox::OpenMode::OpenOrCreate) |
322 | 322 | .permissions(iox::perms::owner_all) |
323 | 323 | .initialValue(0U) |
324 | 324 | .create(semaphore); |
|
788 | 788 |
|
789 | 789 | | before | after | |
790 | 790 | |:----------:|:-------:| |
791 | | - | `kOff` | `OFF` | |
792 | | - | `kFatal` | `FATAL` | |
793 | | - | `kError` | `ERROR` | |
794 | | - | `kWarn` | `WARN` | |
795 | | - | `kInfo` | `INFO` | |
796 | | - | `kDebug` | `DEBUG` | |
797 | | - | `kVerbose` | `TRACE` | |
| 791 | + | `kOff` | `Off` | |
| 792 | + | `kFatal` | `Fatal` | |
| 793 | + | `kError` | `Error` | |
| 794 | + | `kWarn` | `Warn` | |
| 795 | + | `kInfo` | `Info` | |
| 796 | + | `kDebug` | `Debug` | |
| 797 | + | `kVerbose` | `Trace` | |
798 | 798 |
|
799 | 799 | In the C binding the `Iceoryx_LogLevel_Verbose` changed to `Iceoryx_LogLevel_Trace`. |
800 | 800 |
|
|
813 | 813 | // after |
814 | 814 | #include "iox/logging.hpp" |
815 | 815 |
|
816 | | - iox::log::Logger::init(iox::log::LogLevel::INFO); |
| 816 | + iox::log::Logger::init(iox::log::LogLevel::Info); |
817 | 817 |
|
818 | | - IOX_LOG(INFO, "Hello World " << 42); |
| 818 | + IOX_LOG(Info, "Hello World " << 42); |
819 | 819 | ``` |
820 | 820 |
|
821 | 821 | 31. Setting the default log level changed |
|
829 | 829 | // after |
830 | 830 | #include "iox/logging.hpp" |
831 | 831 |
|
832 | | - iox::log::Logger::init(iox::log::LogLevel::ERROR); |
| 832 | + iox::log::Logger::init(iox::log::LogLevel::Error); |
833 | 833 | ``` |
834 | 834 |
|
835 | 835 | Please look at the logger design document for more details like setting the log level via environment variables. |
|
841 | 841 | logger.SetLogLevel(); // directly on the instance |
842 | 842 |
|
843 | 843 | // after |
844 | | - iox::log::Logger::setLogLevel(iox::log::LogLevel::DEBUG); |
| 844 | + iox::log::Logger::setLogLevel(iox::log::LogLevel::Debug); |
845 | 845 | ``` |
846 | 846 |
|
847 | 847 | 33. Using the logger in libraries is massively simplified |
|
901 | 901 | { |
902 | 902 | void myFunc() |
903 | 903 | { |
904 | | - IOX_LOG(INFO, "Hello World " << 42); |
| 904 | + IOX_LOG(Info, "Hello World " << 42); |
905 | 905 | } |
906 | 906 | } |
907 | 907 | ``` |
|
910 | 910 |
|
911 | 911 | | before | after | |
912 | 912 | |:---------------------------:|:---------------------------:| |
913 | | - | `LogFatal() << "x" << 42` | `IOX_LOG(FATAL, "x" << 42)` | |
914 | | - | `LogError() << "x" << 42` | `IOX_LOG(ERROR, "x" << 42)` | |
915 | | - | `LogWarn() << "x" << 42` | `IOX_LOG(WARN, "x" << 42)` | |
916 | | - | `LogInfo() << "x" << 42` | `IOX_LOG(INFO, "x" << 42)` | |
917 | | - | `LogDebug() << "x" << 42` | `IOX_LOG(DEBUG, "x" << 42)` | |
918 | | - | `LogVerbose() << "x" << 42` | `IOX_LOG(TRACE, "x" << 42)` | |
| 913 | + | `LogFatal() << "x" << 42` | `IOX_LOG(Fatal, "x" << 42)` | |
| 914 | + | `LogError() << "x" << 42` | `IOX_LOG(Error, "x" << 42)` | |
| 915 | + | `LogWarn() << "x" << 42` | `IOX_LOG(Warn, "x" << 42)` | |
| 916 | + | `LogInfo() << "x" << 42` | `IOX_LOG(Info, "x" << 42)` | |
| 917 | + | `LogDebug() << "x" << 42` | `IOX_LOG(Debug, "x" << 42)` | |
| 918 | + | `LogVerbose() << "x" << 42` | `IOX_LOG(Trace, "x" << 42)` | |
919 | 919 |
|
920 | 920 | 35. Logger formatting changed |
921 | 921 |
|
|
926 | 926 | LogInfo() << iox::log::RawBuffer(buf); |
927 | 927 |
|
928 | 928 | // after |
929 | | - IOX_LOG(INFO, iox::log::hex(42)); |
930 | | - IOX_LOG(INFO, iox::log::oct(37)); |
931 | | - IOX_LOG(INFO, iox::log::bin(73)); |
932 | | - IOX_LOG(INFO, iox::log::raw(buf)); |
| 929 | + IOX_LOG(Info, iox::log::hex(42)); |
| 930 | + IOX_LOG(Info, iox::log::oct(37)); |
| 931 | + IOX_LOG(Info, iox::log::bin(73)); |
| 932 | + IOX_LOG(Info, iox::log::raw(buf)); |
933 | 933 | ``` |
934 | 934 |
|
935 | 935 | 36. Creating an instance of `LogStream` does not work anymore |
|
946 | 946 | stream.Flush(); |
947 | 947 |
|
948 | 948 | // after |
949 | | - IOX_LOG(INFO, [] (auto& stream) -> auto& { |
| 949 | + IOX_LOG(Info, [] (auto& stream) -> auto& { |
950 | 950 | stream << "fibonacci: " |
951 | 951 | for(auto fib : {1, 1, 2, 3, 5, 8}) |
952 | 952 | { |
|
1016 | 1016 | #include "iceoryx_hoofs/testing/testing_logger.hpp" |
1017 | 1017 |
|
1018 | 1018 | sut.methodCallWithLogOutput(); |
1019 | | - if (iox::testing::TestingLogger::doesLoggerSupportLogLevel(iox::log::LogLevel::ERROR)) |
| 1019 | + if (iox::testing::TestingLogger::doesLoggerSupportLogLevel(iox::log::LogLevel::Error)) |
1020 | 1020 | { |
1021 | 1021 | auto logMessages = iox::testing::TestingLogger::getLogMessages(); |
1022 | 1022 | ASSERT_THAT(logMessages.size(), Eq(1U)); |
|
0 commit comments