logging.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* logging.h - Logging infrastructure
*/
#ifndef __LIBCAMERA_LOGGING_H__
#define __LIBCAMERA_LOGGING_H__
namespace libcamera {
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 */
#endif /* __LIBCAMERA_LOGGING_H__ */
libcamera::LoggingTarget
LoggingTarget
Log destination type.
Definition: logging.h:12
libcamera::LoggingTargetStream
@ LoggingTargetStream
Log to stream.
Definition: logging.h:16
libcamera::LoggingTargetFile
@ LoggingTargetFile
Log to file.
Definition: logging.h:15
libcamera::LoggingTargetNone
@ LoggingTargetNone
No logging destination.
Definition: logging.h:13
libcamera::LoggingTargetSyslog
@ LoggingTargetSyslog
Log to syslog.
Definition: logging.h:14