#include "flutter/fml/log_settings.h"
#include <fcntl.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include "flutter/fml/logging.h"
namespace fml {
namespace state {
extern LogSettings g_log_settings;
}
void SetLogSettings(const LogSettings& settings) {
state::g_log_settings.min_log_level =
std::min(LOG_FATAL, settings.min_log_level);
}
LogSettings GetLogSettings() {
return state::g_log_settings;
}
int GetMinLogLevel() {
return std::min(state::g_log_settings.min_log_level, LOG_FATAL);
}
}