#ifndef APP_LOG_H
#define APP_LOG_H

#ifdef __cplusplus
extern "C" {
#endif

// Centralized application logging (writes to logs/app/app.log)
typedef enum {
    LOG_TRACE = 0,
    LOG_DEBUG = 1,
    LOG_INFO = 2,
    LOG_WARN = 3,
    LOG_ERROR = 4
} log_level_t;

extern log_level_t g_log_level;
void app_log(log_level_t level, const char* format, ...);

#ifdef __cplusplus
}
#endif

#endif // APP_LOG_H
