From 182729b2474b701e678dcd58d0027eb0fdb135e8 Mon Sep 17 00:00:00 2001 From: Ryan Teal Date: Fri, 26 Jul 2019 19:31:42 +0100 Subject: [PATCH] Add logcat to the logger Shame, Pixelylon, shame. --- app/src/main/cpp/switch/common.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/cpp/switch/common.cpp b/app/src/main/cpp/switch/common.cpp index f2417590..4d8f511a 100644 --- a/app/src/main/cpp/switch/common.cpp +++ b/app/src/main/cpp/switch/common.cpp @@ -70,6 +70,7 @@ namespace lightSwitch { if (level == DEBUG) return; #endif + syslog(level_syslog[level], "%s", str.c_str()); log_file << "1|" << level_str[level] << "|" << str << "\n"; log_file.flush(); }