logs() — spring-boot Function Reference
Architecture documentation for the logs() function in DockerApi.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f9dc02e0_c2b2_e9fe_c659_09742ec08fac["logs()"] d1757773_1e32_5f99_15ef_5bbc9a9d8dd2["buildUrl()"] f9dc02e0_c2b2_e9fe_c659_09742ec08fac -->|calls| d1757773_1e32_5f99_15ef_5bbc9a9d8dd2 fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be["http()"] f9dc02e0_c2b2_e9fe_c659_09742ec08fac -->|calls| fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be aedd9701_c439_405f_f47e_c53ca8d2db00["get()"] f9dc02e0_c2b2_e9fe_c659_09742ec08fac -->|calls| aedd9701_c439_405f_f47e_c53ca8d2db00 style f9dc02e0_c2b2_e9fe_c659_09742ec08fac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java lines 463–477
public void logs(ContainerReference reference, UpdateListener<LogUpdateEvent> listener) throws IOException {
Assert.notNull(reference, "'reference' must not be null");
Assert.notNull(listener, "'listener' must not be null");
Object[] params = { "stdout", "1", "stderr", "1", "follow", "1" };
URI uri = buildUrl("/containers/" + reference + "/logs", params);
listener.onStart();
try {
try (Response response = http().get(uri)) {
LogUpdateEvent.readAll(response.getContent(), listener::onUpdate);
}
}
finally {
listener.onFinish();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does logs() do?
logs() is a function in the spring-boot codebase.
What does logs() call?
logs() calls 3 function(s): buildUrl, get, http.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free