summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-28 14:27:58 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-08-05 14:11:11 +0100
commit1e58e324d6a51679f77684d000c2c9f104fad64c (patch)
tree39a66d7abdb22ce320cb7ba93632daea0e254958
parentc5b655fe6f93b01de6070b2fe7be93bab0d39058 (diff)
Log to a local file
This should only be done when isolated, otherwise I expect it will interfere with libcamera's logging Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--ipu3.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipu3.cpp b/ipu3.cpp
index 96744c8..955fa62 100644
--- a/ipu3.cpp
+++ b/ipu3.cpp
@@ -20,6 +20,8 @@
#include <libcamera/base/log.h>
+#include <libcamera/logging.h>
+
#include "libcamera-helpers/mapped_buffer.h"
/* IA AIQ Wrapper API */
@@ -89,6 +91,8 @@ int IPAIPU3::init(const IPASettings &settings)
{
int ret;
+ logSetFile("/tmp/ipu3ipa.log");
+
/*
* Temporary mapping of the sensor name to the AIQB data file.
*