|
libcamera v0.7.2
Supporting cameras in Linux since 2019
|
Public Member Functions | |
| void | write (const LogMessage &msg) |
| Write a message to the configured logger output. | |
| void | backtrace () |
| Write a backtrace to the log. | |
| int | logSetFile (const char *path, bool color) |
| Set the log file. | |
| int | logSetStream (std::ostream *stream, bool color) |
| Set the log stream. | |
| int | logSetTarget (LoggingTarget target) |
| Set the log target. | |
| void | logSetLevel (const char *category, const char *level) |
| Set the log level. | |
Static Public Member Functions | |
| static Logger * | instance () |
| Retrieve the logger instance. | |
|
static |
Retrieve the logger instance.
The Logger is a singleton and can't be constructed manually. This function shall instead be used to retrieve the single global instance of the logger.
| int libcamera::Logger::logSetFile | ( | const char * | path, |
| bool | color ) |
Set the log file.
| [in] | path | Full path to the log file |
| [in] | color | True to output colored messages |
| void libcamera::Logger::logSetLevel | ( | const char * | category, |
| const char * | level ) |
Set the log level.
| [in] | category | Logging category |
| [in] | level | Log level |
| int libcamera::Logger::logSetStream | ( | std::ostream * | stream, |
| bool | color ) |
Set the log stream.
| [in] | stream | Stream to send log output to |
| [in] | color | True to output colored messages |
| int libcamera::Logger::logSetTarget | ( | LoggingTarget | target | ) |
Set the log target.
| [in] | target | Log destination |
| void libcamera::Logger::write | ( | const LogMessage & | msg | ) |
Write a message to the configured logger output.
| [in] | msg | The message object |