BuildLogsURL returns the deep link that opens Docker Desktop's Logs view, optionally pre-filtered to a Compose project. An empty appID yields the unfiltered URL.
(appID string)
| 58 | // optionally pre-filtered to a Compose project. An empty appID yields the |
| 59 | // unfiltered URL. |
| 60 | func BuildLogsURL(appID string) string { |
| 61 | if appID == "" { |
| 62 | return logsDeepLink |
| 63 | } |
| 64 | if len(appID) > LogsAppIDMaxLen { |
| 65 | appID = appID[:LogsAppIDMaxLen] |
| 66 | } |
| 67 | q := url.Values{"appId": []string{appID}} |
| 68 | return logsDeepLink + "?" + q.Encode() |
| 69 | } |
| 70 | |
| 71 | // identify this client in the logs |
| 72 | var userAgent = "compose/" + internal.Version |
no outgoing calls