libcamera  v0.3.2+116-83c5ad0f
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 infrastructure
6  */
7 
8 #pragma once
9 
10 #include <ostream>
11 
12 namespace libcamera {
13 
19 };
20 
21 int logSetFile(const char *path, bool color = false);
22 int logSetStream(std::ostream *stream, bool color = false);
23 int logSetTarget(LoggingTarget target);
24 void logSetLevel(const char *category, const char *level);
25 
26 } /* namespace libcamera */
Log to stream.
Definition: logging.h:18
LoggingTarget
Log destination type.
Definition: logging.h:14
Top-level libcamera namespace.
Definition: backtrace.h:17
int logSetTarget(LoggingTarget target)
Set the logging target.
Definition: log.cpp:411
Log to syslog.
Definition: logging.h:16
void logSetLevel(const char *category, const char *level)
Set the log level.
Definition: log.cpp:431
Log to file.
Definition: logging.h:17
int logSetStream(std::ostream *stream, bool color=false)
Direct logging to a stream.
Definition: log.cpp:388
No logging destination.
Definition: logging.h:15
int logSetFile(const char *path, bool color=false)
Direct logging to a file.
Definition: log.cpp:365