summaryrefslogtreecommitdiff
path: root/include/libcamera/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/logging.h')
-rw-r--r--include/libcamera/logging.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/libcamera/logging.h b/include/libcamera/logging.h
index a8495cf6..2b6dd3f4 100644
--- a/include/libcamera/logging.h
+++ b/include/libcamera/logging.h
@@ -9,8 +9,17 @@
namespace libcamera {
-void logSetFile(const char *file);
-int logSetLevel(const char *category, const char *level);
+enum LoggingTarget {
+ LoggingTargetNone,
+ LoggingTargetSyslog,
+ LoggingTargetFile,
+ LoggingTargetStream,
+};
+
+int logSetFile(const char *path);
+int logSetStream(std::ostream *stream);
+int logSetTarget(LoggingTarget target);
+void logSetLevel(const char *category, const char *level);
} /* namespace libcamera */