|
libcamera v0.7.2
Supporting cameras in Linux since 2019
|
Log output. More...
Public Member Functions | |
| LogOutput (const char *path, bool color) | |
| Construct a log output based on a file. | |
| LogOutput (std::ostream *stream, bool color) | |
| Construct a log output based on a stream. | |
| LogOutput () | |
| Construct a log output to syslog. | |
| bool | isValid () const |
| Check if the log output is valid. | |
| void | write (const LogMessage &msg) |
| Write message to log output. | |
| void | write (const std::string &msg) |
| Write string to log output. | |
Log output.
The LogOutput class models a log output destination
| libcamera::LogOutput::LogOutput | ( | const char * | path, |
| bool | color ) |
Construct a log output based on a file.
| [in] | path | Full path to log file |
| [in] | color | True to output colored messages |
| libcamera::LogOutput::LogOutput | ( | std::ostream * | stream, |
| bool | color ) |
Construct a log output based on a stream.
| [in] | stream | Stream to send log output to |
| [in] | color | True to output colored messages |
| bool libcamera::LogOutput::isValid | ( | ) | const |
Check if the log output is valid.
| void libcamera::LogOutput::write | ( | const LogMessage & | msg | ) |
Write message to log output.
| [in] | msg | Message to write |
| void libcamera::LogOutput::write | ( | const std::string & | str | ) |
Write string to log output.
| [in] | str | String to write |