libcamera  v0.0.0+100-debian/0_git20200629+e7aa92a-8-9-g77f5237c-dirty (2021-05-05T16:20:29+01:00)
Supporting cameras in Linux since 2019
logging.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2019, Google Inc.
4  *
5  * logging.h - Logging infrastructure
6  */
7 #ifndef __LIBCAMERA_LOGGING_H__
8 #define __LIBCAMERA_LOGGING_H__
9 
10 namespace libcamera {
11 
17 };
18 
19 int logSetFile(const char *path);
20 int logSetStream(std::ostream *stream);
21 int logSetTarget(LoggingTarget target);
22 void logSetLevel(const char *category, const char *level);
23 
24 } /* namespace libcamera */
25 
26 #endif /* __LIBCAMERA_LOGGING_H__ */
Log to stream.
Definition: logging.h:16
int logSetFile(const char *path)
Direct logging to a file.
Definition: log.cpp:307
LoggingTarget
Log destination type.
Definition: logging.h:12
Top-level libcamera namespace.
Definition: bound_method.h:15
int logSetTarget(LoggingTarget target)
Set the logging target.
Definition: log.cpp:347
Log to syslog.
Definition: logging.h:14
void logSetLevel(const char *category, const char *level)
Set the log level.
Definition: log.cpp:367
Log to file.
Definition: logging.h:15
int logSetStream(std::ostream *stream)
Direct logging to a stream.
Definition: log.cpp:324
No logging destination.
Definition: logging.h:13