From 2c20cf8f540dc05f42c35bb3de97c9be299bb7c9 Mon Sep 17 00:00:00 2001 From: konstantysz Date: Wed, 26 Nov 2025 09:43:40 +0100 Subject: [PATCH 1/4] Enable set logger name --- include/Logger.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/Logger.h b/include/Logger.h index f0fba58..8426cae 100644 --- a/include/Logger.h +++ b/include/Logger.h @@ -22,10 +22,32 @@ namespace Kappa */ static Logger &Get() { - static Logger instance(spdlog::stdout_color_mt("VisionCraft")); + static Logger instance(spdlog::stdout_color_mt(GetLoggerName())); return instance; } + /** + * @brief Sets the logger name (must be called before first Get()). + * @param name Logger name to display in logs + */ + static void SetLoggerName(const std::string &name) + { + GetLoggerName() = name; + } + + private: + /** + * @brief Returns the logger name (default: "Kappa"). + * @return Logger name + */ + static std::string &GetLoggerName() + { + static std::string loggerName = "Kappa"; + return loggerName; + } + + public: + /** * @brief Trace logging. * @tparam Args Format argument types From bf8e22b18307715d81c947f624ecdbb6253081bd Mon Sep 17 00:00:00 2001 From: konstantysz Date: Wed, 26 Nov 2025 10:00:23 +0100 Subject: [PATCH 2/4] Add documentation workflow fix --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 50fe75d..3991347 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ main ] +permissions: + contents: write # needed for the push to gh‑pages + jobs: doxygen: name: Generate API Documentation @@ -28,5 +31,5 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/api/html + publish_dir: ./docs publish_branch: gh-pages From 33f2757b7cc0444731532e8e84cbf05592d4c00d Mon Sep 17 00:00:00 2001 From: konstantysz Date: Wed, 26 Nov 2025 10:01:29 +0100 Subject: [PATCH 3/4] Clang format fixes --- include/Logger.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/Logger.h b/include/Logger.h index 8426cae..97eb4bc 100644 --- a/include/Logger.h +++ b/include/Logger.h @@ -47,7 +47,6 @@ namespace Kappa } public: - /** * @brief Trace logging. * @tparam Args Format argument types From 68e1295da1d788c7b753880a7c7ee50ea1043993 Mon Sep 17 00:00:00 2001 From: konstantysz Date: Wed, 26 Nov 2025 10:06:18 +0100 Subject: [PATCH 4/4] Simplify badges --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index d0d1cda..6c6be63 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ [![Build Status](https://github.com/Konstantysz/kappa-core/actions/workflows/build.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/build.yml) [![Tests](https://github.com/Konstantysz/kappa-core/actions/workflows/tests.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/tests.yml) -[![Format Check](https://github.com/Konstantysz/kappa-core/actions/workflows/format.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/format.yml) -[![Pre-commit](https://github.com/Konstantysz/kappa-core/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/pre-commit.yml) [![Static Analysis](https://github.com/Konstantysz/kappa-core/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/static-analysis.yml) [![Documentation](https://github.com/Konstantysz/kappa-core/actions/workflows/docs.yml/badge.svg)](https://github.com/Konstantysz/kappa-core/actions/workflows/docs.yml)