21int logSetFile(
const char *path,
bool color =
false);
22int logSetStream(std::ostream *stream,
bool color =
false);
24void logSetLevel(
const char *category,
const char *level);
Top-level libcamera namespace.
Definition backtrace.h:17
int logSetStream(std::ostream *stream, bool color=false)
Direct logging to a stream.
Definition log.cpp:391
void logSetLevel(const char *category, const char *level)
Set the log level.
Definition log.cpp:434
int logSetFile(const char *path, bool color=false)
Direct logging to a file.
Definition log.cpp:368
int logSetTarget(LoggingTarget target)
Set the logging target.
Definition log.cpp:414
LoggingTarget
Log destination type.
Definition logging.h:14
@ LoggingTargetFile
Log to file.
Definition logging.h:17
@ LoggingTargetNone
No logging destination.
Definition logging.h:15
@ LoggingTargetSyslog
Log to syslog.
Definition logging.h:16
@ LoggingTargetStream
Log to stream.
Definition logging.h:18