High Performance & Power Efficient
Optimized for Android root environment with intelligent buffering, batch I/O operations, and smart polling mechanisms to minimize CPU usage and power consumption.
High-performance logging and file monitoring solution designed specifically for Android root environment
#include "loggerAPI/logger_api.hpp"
int main() {
// Configure logger
LoggerAPI::InternalLogger::Config config;
config.log_path = "app.log";
config.max_file_size = 10 * 1024 * 1024; // 10MB
config.min_log_level = LoggerAPI::LogLevel::DEBUG;
LoggerAPI::init_logger(config);
// Start logging
LoggerAPI::info("Application started");
LoggerAPI::debug("Debug information");
LoggerAPI::error("Error occurred");
LoggerAPI::shutdown_logger();
return 0;
}
#include "filewatcherAPI/filewatcher_api.hpp"
int main() {
FileWatcherAPI::FileWatcher watcher;
// Add file watch with callback
watcher.add_watch("/data/config",
[](const FileWatcherAPI::FileEvent& event) {
std::cout << "File " << event.filename
<< " was " << FileWatcherAPI::event_type_to_string(event.type)
<< std::endl;
},
FileWatcherAPI::make_event_mask({
FileWatcherAPI::EventType::MODIFY,
FileWatcherAPI::EventType::CREATE
})
);
watcher.start();
// ... your application logic
watcher.stop();
return 0;
}
Ready to integrate AuroraCore into your Android project? Check out our Getting Started Guide or explore the API Reference for detailed documentation.