Log output.
More...
Log output.
The LogOutput class models a log output destination
◆ LogOutput() [1/2]
libcamera::LogOutput::LogOutput |
( |
const char * |
path, |
|
|
bool |
color |
|
) |
| |
Construct a log output based on a file.
- Parameters
-
[in] | path | Full path to log file |
[in] | color | True to output colored messages |
◆ LogOutput() [2/2]
libcamera::LogOutput::LogOutput |
( |
std::ostream * |
stream, |
|
|
bool |
color |
|
) |
| |
Construct a log output based on a stream.
- Parameters
-
[in] | stream | Stream to send log output to |
[in] | color | True to output colored messages |
◆ isValid()
bool libcamera::LogOutput::isValid |
( |
| ) |
const |
Check if the log output is valid.
- Returns
- True if the log output is valid
◆ write() [1/2]
void libcamera::LogOutput::write |
( |
const LogMessage & |
msg | ) |
|
Write message to log output.
- Parameters
-
◆ write() [2/2]
void libcamera::LogOutput::write |
( |
const std::string & |
str | ) |
|
Write string to log output.
- Parameters
-
The documentation for this class was generated from the following file:
- src/libcamera/base/log.cpp