MCPcopy Index your code
hub / github.com/cloudfoundry/cli / RecentLogsFor

Method RecentLogsFor

cf/api/logs/log_cache_repository.go:40–52  ·  view source on GitHub ↗
(appGUID string)

Source from the content-addressed store, hash-verified

38}
39
40func (r *logCacheRepository) RecentLogsFor(appGUID string) ([]Loggable, error) {
41 logs, err := r.recentLogsFunc(appGUID, r.client)
42 if err != nil {
43 return nil, err
44 }
45
46 loggables := make([]Loggable, len(logs))
47 for i, v := range logs {
48 loggables[i] = NewLogCacheMessage(&terminalColorLogger{}, v)
49 }
50
51 return loggables, nil
52}
53
54func (r *logCacheRepository) TailLogsFor(appGUID string, onConnect func(), logChan chan<- Loggable, errChan chan<- error) {
55 messages, logErrs, stopStreaming := r.getStreamingLogsFunc(appGUID, r.client)

Callers

nothing calls this directly

Calls 1

NewLogCacheMessageFunction · 0.85

Tested by

no test coverage detected