blob: c36882b919749ed3bba2e1634d60dc14546c3868 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* logging.h - Logging infrastructure
*/
#pragma once
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 */
|