libcamera
v0.7.2
Supporting cameras in Linux since 2019
Toggle main menu visibility
Loading...
Searching...
No Matches
logging.h
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
14
enum
LoggingTarget {
15
LoggingTargetNone,
16
LoggingTargetSyslog,
17
LoggingTargetFile,
18
LoggingTargetStream,
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 */
libcamera
Top-level libcamera namespace.
Definition
bound_method.h:15
include
libcamera
logging.h
Generated by
1.18.0