use libcamera::logging::{
configure_stderr, log_set_file, log_set_stream, log_set_target, LoggingLevel, LoggingStream, LoggingTarget,
};
fn main() {
log_set_target(LoggingTarget::None).expect("Can't disable logging");
log_set_target(LoggingTarget::Syslog).expect("Can't set logging to syslog");
log_set_file("/tmp/libcamera.log", false).expect("Can't set logging to a file");
log_set_stream(LoggingStream::StdOut, true).expect("Can't set logging to stdout");
configure_stderr("Camera", LoggingLevel::Info, true).expect("failed to configure stderr logging");
}