Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
23 changes: 22 additions & 1 deletion include/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,31 @@ 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
Expand Down
Loading