API-referentie

App-logs

Lees en wis het roterende logbestand van PlainApp. Bedoeld voor debugging — alleen ontwikkelaarsmodus.

Typedefinities

bash
# appLogs returns an array of plain strings (one per log line, newest-first).
# appLogPath returns the absolute path of the current log file on the device.

Bewerkingen

query

appLogs

Lees logregels uit het roterende logbestand, nieuwste eerst. Gebruik offset/limit voor paginering.

bash
query GetAppLogs($offset: Int!, $limit: Int!) {
  appLogs(offset: $offset, limit: $limit)
}
query

appLogPath

Haal het absolute bestandssysteempad van het huidige logbestand op.

bash
query GetAppLogPath {
  appLogPath
}
mutation

clearAppLogs

Kap het huidige logbestand af.

bash
mutation ClearAppLogs {
  clearAppLogs
}