API-Referenz

App-Logs

Funktionsunterstützung über app.capabilities prüfen, Autorisierung über app.access und Host-Berechtigungen. Die Beispiele verwenden synthetische Werte; vor dem Aufruf Pfade, IDs, Eingaben und Filter ersetzen.

Typdefinitionen

graphql
type Mutation {
  clearAppLogs: Boolean!
  exportAppLogs: String
}

type Query {
  appLogFilesSize: Long!
  appLogPath: String!
  appLogs(query: String!, offset: Int!, limit: Int!): [String!]!
}

scalar Long

Operationen

mutation

clearAppLogs

Leert Anwendungslogdateien. Entfernte Aufrufe erfordern den Entwicklermodus.

graphql
mutation clearAppLogs {
  clearAppLogs
}
mutation

exportAppLogs

Exportiert Anwendungslogs als Archiv und gibt dessen Pfad zurück, sofern verfügbar. Entfernte Aufrufe erfordern den Entwicklermodus.

graphql
mutation exportAppLogs {
  exportAppLogs
}
query

appLogFilesSize

Liest die Gesamtgröße der Anwendungslogdateien in Byte. Entfernte Aufrufe erfordern den Entwicklermodus.

graphql
query appLogFilesSize {
  appLogFilesSize
}
query

appLogPath

Liest den aktuellen Anwendungslogpfad. Entfernte Aufrufe erfordern den Entwicklermodus.

graphql
query appLogPath {
  appLogPath
}
query

appLogs

Liest oder durchsucht Anwendungslogzeilen seitenweise, neueste zuerst. Entfernte Aufrufe erfordern den Entwicklermodus.

graphql
# Log lines, newest first. A blank `query` pages the buffer directly;
# a non-blank one filters the whole buffer and then pages, so a
# search cannot be cut short by the page size.
query appLogs($query: String!, $offset: Int!, $limit: Int!) {
  appLogs(query: $query, offset: $offset, limit: $limit)
}