log static method
Implementation
static void log(String message) {
final timestamp = DateTime.now().toString().split('.').first;
final entry = "[$timestamp] $message";
// Add to logs list with a maximum size
logs.add(entry);
if (logs.length > 100) {
logs.removeAt(0);
}
// Print to console if debug mode is enabled
if (debugMode) {
print("ONAIROS_DEBUG: $entry");
}
}