|
testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
|
Options for GET /containers/{id}/logs. More...
#include <testcontainers/docker/Logs.hpp>
Public Attributes | |
| bool | include_stdout = true |
| include the stdout stream | |
| bool | include_stderr = true |
| include the stderr stream | |
| std::string | tail = "all" |
| number of trailing lines, or "all" | |
| bool | timestamps = false |
| prefix each line with an RFC3339 timestamp | |
| bool | tty = false |
| The container was created with Tty=true → its log stream is raw/unframed; skip demux. | |
Options for GET /containers/{id}/logs.
Note: the include-flags are named include_stdout / include_stderr rather than stdout / stderr because the latter are reserved macros from <cstdio> on some platforms (notably MSVC, where stdout expands to a function call). There is deliberately no follow flag here: the snapshot/stream split is encoded in the method names — logs() is always a snapshot, follow_logs() always streams.
| bool testcontainers::LogOptions::include_stdout = true |
include the stdout stream
| bool testcontainers::LogOptions::include_stderr = true |
include the stderr stream
| std::string testcontainers::LogOptions::tail = "all" |
number of trailing lines, or "all"
| bool testcontainers::LogOptions::timestamps = false |
prefix each line with an RFC3339 timestamp
| bool testcontainers::LogOptions::tty = false |
The container was created with Tty=true → its log stream is raw/unframed; skip demux.
Not a query param: it only selects the decode path.