Add logcat to the logger

Shame, Pixelylon, shame.
This commit is contained in:
Ryan Teal 2019-07-26 19:31:42 +01:00
parent 3bdbe41c13
commit 182729b247
No known key found for this signature in database
GPG Key ID: 410860042F8692DF

View File

@ -70,6 +70,7 @@ namespace lightSwitch {
if (level == DEBUG) if (level == DEBUG)
return; return;
#endif #endif
syslog(level_syslog[level], "%s", str.c_str());
log_file << "1|" << level_str[level] << "|" << str << "\n"; log_file << "1|" << level_str[level] << "|" << str << "\n";
log_file.flush(); log_file.flush();
} }