libcamera
v0.1.0
Supporting cameras in Linux since 2019
include
libcamera
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
8
#pragma once
9
10
namespace
libcamera
{
11
12
enum
LoggingTarget
{
13
LoggingTargetNone
,
14
LoggingTargetSyslog
,
15
LoggingTargetFile
,
16
LoggingTargetStream
,
17
};
18
19
int
logSetFile
(
const
char
*path,
bool
color =
false
);
20
int
logSetStream
(std::ostream *stream,
bool
color =
false
);
21
int
logSetTarget
(
LoggingTarget
target);
22
void
logSetLevel
(
const
char
*category,
const
char
*level);
23
24
}
/* namespace libcamera */
libcamera::LoggingTargetSyslog
@ LoggingTargetSyslog
Log to syslog.
Definition:
logging.h:14
libcamera::LoggingTargetFile
@ LoggingTargetFile
Log to file.
Definition:
logging.h:15
libcamera::logSetLevel
void logSetLevel(const char *category, const char *level)
Set the log level.
Definition:
log.cpp:431
libcamera
Top-level libcamera namespace.
Definition:
backtrace.h:17
libcamera::LoggingTargetNone
@ LoggingTargetNone
No logging destination.
Definition:
logging.h:13
libcamera::logSetTarget
int logSetTarget(LoggingTarget target)
Set the logging target.
Definition:
log.cpp:411
libcamera::logSetFile
int logSetFile(const char *path, bool color=false)
Direct logging to a file.
Definition:
log.cpp:365
libcamera::LoggingTargetStream
@ LoggingTargetStream
Log to stream.
Definition:
logging.h:16
libcamera::LoggingTarget
LoggingTarget
Log destination type.
Definition:
logging.h:12
libcamera::logSetStream
int logSetStream(std::ostream *stream, bool color=false)
Direct logging to a stream.
Definition:
log.cpp:388
Generated by
1.8.20