EN | RU
aurora_libspdlog
The plugin is a wrapper for the spylog library's files (https://github.com/game/spylog). The plugin is designed to simplify logging and debugging of native C++ code for the Aurora OS platform
Contents
- Installation and build
- Information about branches
- Detailed description
- Compatibility
- Terms of use and participation in development
Installation and build
Add the plugin depending on the target plugin or application in the pubspec.yaml file:
dependencies:
aurora_libspdlog:
git:
url: https://developer.auroraos.ru/git/flutter/flutter-community-plugins/aurora_libspdlog
And update the dependencies:
flutter-aurora pub get
Configure the connection to the target plugin or application in Cmake:
find_package(aurora_libspdlog REQUIRED )
target_link_libraries(${PLUGIN_NAME} PUBLIC aurora_libspdlog::aurora_libspdlog)
You may also need to remove the comment to disable auto-generation:
- # This file will be recreated at the next build. To avoid this, delete this line.
Connect header files:
#include <spdlog/spdlog.h>
Detailed description
It is especially convenient to use spylog for displaying non-standard c++ types. To do this, you should describe a formatter:
#include <spdlog/fmt/fmt.h>
#include <spdlog/spdlog.h>
#include <QString>
namespace fmt::v11 {
template <>
struct formatter<QString> {
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
template <typename FormatContext>
auto format(const QString& str, FormatContext& ctx) const {
return format_to(ctx.out(), "{}", str.toStdString());
}
};
}
Information about branches
The versions of the application comply with the branch naming agreement.
Compatibility
The plugin has been working correctly since the 5.0.0 version of the Aurora OS.
Terms of use and participation in development
The source code of the project is provided under license, which allows it to be used in third-party applications.
To participate in the development of the project, please read the participant agreement. If you plan to send your source code for inclusion in the project, you will need to accept the terms of the CLA.
Information about the participants is provided in the [AUTHORS] file(AUTHORS.md ).
Code of Conduct is the current set of rules of the Open Mobile Platform company, which informs about the expectations for interaction between community members when communicating and working on projects.