Skip to content

AuroraCoreAndroid Root Logger & File Watcher

High-performance logging and file monitoring solution designed specifically for Android root environment

AuroraCore

Quick Example

Logger API Usage

cpp
#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;
}

FileWatcher API Usage

cpp
#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;
}

Why AuroraCore?

  • 🎯 Purpose-Built: Specifically designed for Android root environment constraints
  • ⚡ Performance: Optimized for minimal CPU usage and power consumption
  • 🔒 Reliable: Battle-tested daemon-client architecture with robust error handling
  • 📚 Well-Documented: Comprehensive documentation with examples and best practices
  • 🚀 Easy Integration: Header-only APIs for seamless integration into existing projects

Getting Started

Ready to integrate AuroraCore into your Android project? Check out our Getting Started Guide or explore the API Reference for detailed documentation.

Community & Support

Released under the MIT License.