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
type Mutation {
clearAppLogs: Boolean!
exportAppLogs: String
}
type Query {
appLogFilesSize: Long!
appLogPath: String!
appLogs(query: String!, offset: Int!, limit: Int!): [String!]!
}
scalar LongOperationen
clearAppLogs
Leert Anwendungslogdateien. Entfernte Aufrufe erfordern den Entwicklermodus.
mutation clearAppLogs {
clearAppLogs
}exportAppLogs
Exportiert Anwendungslogs als Archiv und gibt dessen Pfad zurück, sofern verfügbar. Entfernte Aufrufe erfordern den Entwicklermodus.
mutation exportAppLogs {
exportAppLogs
}appLogFilesSize
Liest die Gesamtgröße der Anwendungslogdateien in Byte. Entfernte Aufrufe erfordern den Entwicklermodus.
query appLogFilesSize {
appLogFilesSize
}appLogPath
Liest den aktuellen Anwendungslogpfad. Entfernte Aufrufe erfordern den Entwicklermodus.
query appLogPath {
appLogPath
}appLogs
Liest oder durchsucht Anwendungslogzeilen seitenweise, neueste zuerst. Entfernte Aufrufe erfordern den Entwicklermodus.
# 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)
}